further typing

This commit is contained in:
James
2020-11-30 08:42:06 -05:00
parent dbc403319d
commit 7644b031c1
7 changed files with 20 additions and 21 deletions

View File

@@ -16,8 +16,8 @@ export type FieldHook = (args: {
}) => Promise<unknown> | unknown;
type FieldBase = {
name: string;
label: string;
name?: string;
label?: string;
slug?: string;
required?: boolean;
unique?: boolean;
@@ -26,7 +26,6 @@ type FieldBase = {
hidden?: boolean;
localized?: boolean;
maxLength?: number;
height?: number;
validate?: (value: any, field: Field) => any;
// eslint-disable-next-line no-use-before-define
hooks?: {