UNPKG

from-schema

Version:

Infer TypeScript types from JSON schemas

26 lines (25 loc) 717 B
export declare const string: { readonly type: "string"; readonly description: "Some text i guess lmao"; }; export declare const boolean: { readonly type: "boolean"; readonly description: "Either true or false"; }; export declare const number: { readonly type: "number"; readonly description: "Any number, should probably be constrained at some point"; }; export declare const bigint: { readonly type: "bigint"; readonly description: "Any bigint"; }; export declare const natural: { readonly type: "integer"; readonly description: "Any natural number"; readonly minimum: 1; }; export declare const date: { readonly type: "date"; readonly description: "Any date"; };