UNPKG

type-plus

Version:
12 lines 442 B
export type JSONTypes = JSONPrimitive | JSONObject | JSONArray; export type JSONPrimitive = boolean | number | string | null; export type JSONObject = { [key in string]?: JSONTypes; }; export type JSONArray = Array<JSONTypes>; export declare const JSONTypes: { get: typeof get; }; declare function get<T extends JSONTypes>(obj: JSONTypes, ...props: Array<string | number>): T | undefined; export {}; //# sourceMappingURL=json.d.ts.map