UNPKG

@jsonhero/json-infer-types

Version:
17 lines (16 loc) 1.06 kB
import { JSONDateTimeFormat } from "./datetime"; import { JSONTimestampFormat } from "./timestamp"; import { JSONEmailFormat } from "./email"; import { JSONCurrencyFormat } from "./currency"; import { JSONCountryFormat } from "./country"; import { JSONTLDFormat } from "./tld"; import { JSONIPAddressFormat } from "./ipAddress"; import { JSONLanguageFormat } from "./language"; import { JSONPhoneNumberFormat } from "./phoneNumber"; import { JSONURIFormat } from "./uri"; import { JSONUUIDFormat } from "./uuid"; import { JSONFilesizeFormat } from "./filesize"; import { JSONHostnameFormat } from "./hostname"; import { JSONJSONFormat } from "./json"; export declare type JSONStringFormat = JSONHostnameFormat | JSONUUIDFormat | JSONURIFormat | JSONPhoneNumberFormat | JSONLanguageFormat | JSONIPAddressFormat | JSONTLDFormat | JSONCountryFormat | JSONCurrencyFormat | JSONEmailFormat | JSONTimestampFormat | JSONDateTimeFormat | JSONFilesizeFormat | JSONJSONFormat; export declare function inferFormat(value: string): JSONStringFormat | undefined;