owncast/web/types/config-section.ts

15 lines
280 B
TypeScript
Raw Normal View History

// TS types for elements on the Config pages
export interface TextFieldProps {
onUpdate: ({ fieldName, value }: UpdateArgs) => void;
fieldName: string;
value: string;
type: string;
}
export interface UpdateArgs {
fieldName: string;
value: string;
path?: string;
}