UNPKG

2.08 kBTypeScriptView Raw
1import { JSONDateTimeFormat } from "./datetime";
2import { JSONTimestampFormat } from "./timestamp";
3import { JSONEmailFormat } from "./email";
4import { JSONCurrencyFormat } from "./currency";
5import { JSONCountryFormat } from "./country";
6import { JSONTLDFormat } from "./tld";
7import { JSONIPAddressFormat } from "./ipAddress";
8import { JSONLanguageFormat } from "./language";
9import { JSONPhoneNumberFormat } from "./phoneNumber";
10import { JSONURIFormat } from "./uri";
11import { JSONUUIDFormat } from "./uuid";
12import { JSONFilesizeFormat } from "./filesize";
13import { JSONHostnameFormat } from "./hostname";
14import { JSONJSONFormat } from "./json";
15import { JSONJSONPointerFormat } from "./jsonPointer";
16import { JSONEmojiFormat } from "./emoji";
17import { JSONSemverFormat } from "./semver";
18import { JSONFirestoreTimestampFormat } from "./firestoreTimestamp";
19import { JSONJWTStringFormat } from "./jwt";
20import { JSONColorFormat } from "./color";
21import { JSONCreditCardFormat } from "./creditCard";
22export { JSONHostnameFormat, JSONUUIDFormat, JSONURIFormat, JSONPhoneNumberFormat, JSONLanguageFormat, JSONIPAddressFormat, JSONTLDFormat, JSONCountryFormat, JSONCurrencyFormat, JSONEmailFormat, JSONTimestampFormat, JSONDateTimeFormat, JSONFilesizeFormat, JSONJSONFormat, JSONJSONPointerFormat, JSONEmojiFormat, JSONSemverFormat, JSONJWTStringFormat, JSONColorFormat, };
23export declare type JSONStringFormat = JSONHostnameFormat | JSONUUIDFormat | JSONURIFormat | JSONPhoneNumberFormat | JSONLanguageFormat | JSONIPAddressFormat | JSONTLDFormat | JSONCountryFormat | JSONCurrencyFormat | JSONEmailFormat | JSONTimestampFormat | JSONDateTimeFormat | JSONFilesizeFormat | JSONJSONFormat | JSONJSONPointerFormat | JSONEmojiFormat | JSONSemverFormat | JSONJWTStringFormat | JSONColorFormat | JSONCreditCardFormat;
24export declare function inferFormat(value: string): JSONStringFormat | undefined;
25export declare type JSONObjectFormat = JSONFirestoreTimestampFormat;
26export declare function inferObjectFormat(value: object): JSONObjectFormat | undefined;