UNPKG

@sprucelabs/schema

Version:

Static and dynamic binding plus runtime validation and transformation to ensure your app is sound. 🤓

13 lines (12 loc) • 406 B
import { FieldDefinition } from './field.static.types'; export interface DirectoryFieldValue { path: string; } export type DirectoryFieldDefinition = FieldDefinition<DirectoryFieldValue> & { /** * .Directory - select whole directories all at once */ type: 'directory'; options?: { /** Will give you a path relative to this one, if possible */ relativeTo?: string; }; };