UNPKG

json-schema-typescript-generator

Version:
34 lines (33 loc) 875 B
import { PartialDeep } from './types'; export declare enum UntypedType { ANY = "any", NEVER = "never", UNDEFINED = "undefined", UNKNOWN = "unknown" } export declare enum OptionalFieldPattern { QUESTION = "fieldName?", PIPE_UNDEFINED = "Type | undefined" } export type AllOptions = { files: { cwd?: string; source: { dir: string; encoding: BufferEncoding; recursive: boolean; }; destination: { dir: string; preClean: boolean; indexFiles: boolean; }; }; ts: { optionalFields: OptionalFieldPattern; untyped: UntypedType; }; }; export type Options = PartialDeep<AllOptions>; export declare const DEFAULT_OPTIONS: AllOptions; export declare const createOptions: (options: PartialDeep<AllOptions>) => AllOptions;