Files
mixtape/zero.Backoffice.UI/app/editor/_wip/editor.d.ts
T
2021-12-09 10:51:10 +01:00

24 lines
491 B
TypeScript

declare module 'zero/editor'
{
export interface FieldSupportsMaxLength
{
maxLength?: number;
}
export interface FieldSupportsPlaceholder
{
placeholder?: string;
}
export type TextFieldOptions = FieldSupportsMaxLength | FieldSupportsPlaceholder;
export type NumberFieldOptions = FieldSupportsMaxLength | FieldSupportsPlaceholder;
export interface EditorField
{
text(options?: TextFieldOptions): void;
number(options?: NumberFieldOptions): void;
}
}