UNPKG

596 BTypeScriptView Raw
1export type AnyJson = JsonPrimitives | JsonArray | JsonMap;
2export type JsonPrimitives = string | number | boolean | null;
3export interface JsonMap {
4 [key: string]: AnyJson;
5}
6export interface JsonArray extends Array<AnyJson> {
7}
8export declare const KeyToPreserveUnknownJSON = "AdditionalJSON";
9export interface IWithAdditionalJSON {
10 [KeyToPreserveUnknownJSON]: JsonMap | undefined;
11}
12type TConstructor<T> = new (value?: any) => T;
13export declare function TaJsonDeserialize<T>(json: any, type: TConstructor<T>): T;
14export declare function TaJsonSerialize<T>(obj: T): JsonMap;
15export {};