UNPKG

@backland/schema

Version:

TypeScript schema declaration and validation library with static type inference

22 lines (21 loc) 642 B
import { Emitter } from '@backland/utils'; import { AnyResolver } from '../Resolver'; import { GraphTypeLike } from '../fields/IObjectLike'; export type CustomTypesWriterEvent = { body?: string[]; footer?: string[]; head?: string[]; name: string; }; export declare const BacklandWatchTypesPubSub: Emitter<{ created: { custom?: CustomTypesWriterEvent; graphType?: GraphTypeLike; resolver?: AnyResolver; }; }>; export interface WriteTypesOptions { dest?: string; } export declare const defaultTypesDest: string; export declare function writeTypes(options?: WriteTypesOptions): Promise<void>;