Skip to content

MaskableFieldType

MaskableFieldType = { [K in keyof typeof ADMIN_FIELDS]: typeof ADMIN_FIELDS[K]["inputMasks"] extends true ? K : never }[keyof typeof ADMIN_FIELDS]

Defined in: packages/core/src/fields/mask/types.ts:8

Union of the field type strings admin.mask is available on — derived from each entry’s own inputMasks: boolean in ADMIN_FIELDS, so a new maskable field type only needs that flag flipped to true.