json2typescript
Version:
Provides TypeScript methods to map a JSON object to a JavaScript object on runtime
20 lines (19 loc) • 609 B
TypeScript
/**
* Internal constants.
*/
import { PropertyConvertingMode } from "./json-convert-enums";
export declare class Settings {
static readonly MAPPING_PROPERTY = "__jsonconvert__mapping__";
static readonly MAPPER_PROPERTY = "__jsonconvert__mapper__";
static readonly CLASS_IDENTIFIER = "__jsonconvert__class_identifier__";
}
/**
* Internal mapping options for a property.
*/
export declare class MappingOptions {
classPropertyName: string;
jsonPropertyName: string;
expectedJsonType?: string;
convertingMode: PropertyConvertingMode;
customConverter: any;
}