nope-js-browser
Version:
NoPE Runtime for the Browser. For nodejs please use nope-js-node
32 lines (31 loc) • 1.23 kB
TypeScript
/**
* @author Martin Karkowski
* @email m.karkowski@zema.de
* @desc [description]
*/
/**
* Function to stringify an Object. This Function will stringify Functions as well.
* @param obj The Object.
*/
export declare function stringifyWithFunctions(obj: any, ...args: any[]): string;
/**
* Function to parse a JSON String, in which methods should be available.
* @param json A String containing the json Object
* @param scope An Scope to use during parsing.
* @returns
*/
export declare function parseWithFunctions(json: string, scope?: {
[index: string]: any;
}): any;
/**
* Function to stringify an Object. This Function is able to stringify Functions as well. Use the Flag withFunctions
* @param obj The Object.
* @param withFunctions Flag to Turn on / off the parsing of functions
*/
export declare function stringify(obj: any, withFunctions?: boolean): string;
/**
* Function to parse a JSON String. This Function is able to parse Functions as well. Use the Flag withFunctions
* @param json A String containing the json Object
* @param withFunctions Flag to Turn on / off the parsing of functions
*/
export declare function parse(json: string, withFunctions?: boolean): any;