@jsonhero/json-infer-types
Version:
Infer the types of a JSON value
10 lines (9 loc) • 364 B
TypeScript
declare type Rfc3339Extensions = Array<"timezone" | "calendar"> | undefined;
export declare type JSONDateTimeFormat = {
name: "datetime";
parts: "datetime" | "date" | "time";
variant: "rfc2822" | "rfc3339";
extensions?: Rfc3339Extensions;
};
export declare function inferDatetime(value: string): JSONDateTimeFormat | undefined;
export {};