eslint: use semicolon TypeScript delimeter
This commit is contained in:
@ -14,30 +14,30 @@ const messages = defineMessages({
|
||||
|
||||
/** Type of the inner Streamfield input component. */
|
||||
export type StreamfieldComponent<T> = React.ComponentType<{
|
||||
value: T
|
||||
onChange: (value: T) => void
|
||||
autoFocus: boolean
|
||||
value: T;
|
||||
onChange: (value: T) => void;
|
||||
autoFocus: boolean;
|
||||
}>;
|
||||
|
||||
interface IStreamfield {
|
||||
/** Array of values for the streamfield. */
|
||||
values: any[]
|
||||
values: any[];
|
||||
/** Input label message. */
|
||||
label?: React.ReactNode
|
||||
label?: React.ReactNode;
|
||||
/** Input hint message. */
|
||||
hint?: React.ReactNode
|
||||
hint?: React.ReactNode;
|
||||
/** Callback to add an item. */
|
||||
onAddItem?: () => void
|
||||
onAddItem?: () => void;
|
||||
/** Callback to remove an item by index. */
|
||||
onRemoveItem?: (i: number) => void
|
||||
onRemoveItem?: (i: number) => void;
|
||||
/** Callback when values are changed. */
|
||||
onChange: (values: any[]) => void
|
||||
onChange: (values: any[]) => void;
|
||||
/** Input to render for each value. */
|
||||
component: StreamfieldComponent<any>
|
||||
component: StreamfieldComponent<any>;
|
||||
/** Minimum number of allowed inputs. */
|
||||
minItems?: number
|
||||
minItems?: number;
|
||||
/** Maximum number of allowed inputs. */
|
||||
maxItems?: number
|
||||
maxItems?: number;
|
||||
}
|
||||
|
||||
/** List of inputs that can be added or removed. */
|
||||
|
||||
Reference in New Issue
Block a user