2020-12-28 10:11:26 +01:00
|
|
|
// TS types for elements on the Config pages
|
|
|
|
|
|
|
|
export interface TextFieldProps {
|
|
|
|
onUpdate: ({ fieldName, value }: UpdateArgs) => void;
|
|
|
|
fieldName: string;
|
2020-12-29 11:51:56 +01:00
|
|
|
initialValue: string;
|
2020-12-28 10:11:26 +01:00
|
|
|
type: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UpdateArgs {
|
|
|
|
fieldName: string;
|
|
|
|
value: string;
|
|
|
|
path?: string;
|
|
|
|
}
|