UNPKG

@sprucelabs/schema

Version:

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

15 lines (14 loc) • 412 B
import { FieldDefinition } from './field.static.types'; export interface AddressFieldValue { street1: string; street2?: string; city: string; province: string; country: string; zip: string; } export type AddressFieldDefinition = FieldDefinition<AddressFieldValue> & { /** * An address with street, city, province, country, and zip details */ type: 'address'; options?: {}; };