@jsonhero/json-infer-types
Version:
Infer the types of a JSON value
6 lines (5 loc) • 677 B
TypeScript
import { JSONValueType } from "./@types";
export { JSONValueType };
export { JSONStringFormat, JSONObjectFormat, JSONHostnameFormat, JSONUUIDFormat, JSONURIFormat, JSONPhoneNumberFormat, JSONLanguageFormat, JSONIPAddressFormat, JSONTLDFormat, JSONCountryFormat, JSONCurrencyFormat, JSONEmailFormat, JSONTimestampFormat, JSONDateTimeFormat, JSONFilesizeFormat, JSONJSONFormat, JSONJSONPointerFormat, JSONEmojiFormat, JSONSemverFormat, JSONJWTStringFormat, } from "./formats";
export { JSONNullType, JSONBoolType, JSONFloatType, JSONIntType, JSONStringType, JSONObjectType, JSONArrayType, } from "./@types";
export declare function inferType(value: unknown): JSONValueType;