UNPKG

@strapi/types

Version:

Shared typescript types for Strapi internal use

25 lines 799 B
export interface CustomFieldServerOptions { /** * The name of the custom field */ name: string; /** * The name of the plugin creating the custom field */ plugin?: string; /** * The existing Strapi data type the custom field uses */ type: 'biginteger' | 'boolean' | 'date' | 'datetime' | 'decimal' | 'email' | 'enumeration' | 'float' | 'integer' | 'json' | 'password' | 'richtext' | 'string' | 'text' | 'time' | 'uid'; /** * Settings for the input size in the Admin UI */ inputSize?: { default: 4 | 6 | 8 | 12; isResizable: boolean; }; } export interface CustomFields { register: (customFields: CustomFieldServerOptions[] | CustomFieldServerOptions) => void; } //# sourceMappingURL=custom-fields.d.ts.map