@types/comment-json
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -7,3 +7,18 @@ // Type definitions for comment-json 1.1 | ||
export type Reviver = (k: number | string, v: any) => any; | ||
/** | ||
* Converts a JavaScript Object Notation (JSON) string into an object. | ||
* @param json A valid JSON string. | ||
* @param reviver A function that transforms the results. This function is called for each member of the object. | ||
* @param removes_comments If true, the comments won't be maintained, which is often used when we want to get a clean object. | ||
* If a member contains nested objects, the nested objects are transformed before the parent object is. | ||
*/ | ||
export function parse(json: string, reviver?: Reviver, removes_comments?: boolean): any; | ||
export function stringify(value: any, replacer?: any, space?: string | number): string; | ||
/** | ||
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string. | ||
* @param value A JavaScript value, usually an object or array, to be converted. | ||
* @param replacer A function that transforms the results or an array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified. | ||
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. | ||
*/ | ||
export function stringify(value: any, replacer?: ((key: string, value: any) => any) | Array<number | string> | null, space?: string | number): string; |
{ | ||
"name": "@types/comment-json", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "TypeScript definitions for comment-json", | ||
"license": "MIT", | ||
"author": "Jason Dent <https://github.com/Jason3S>", | ||
"contributors": [ | ||
{ | ||
"name": "Jason Dent", | ||
"url": "https://github.com/Jason3S", | ||
"githubUsername": "Jason3S" | ||
} | ||
], | ||
"main": "", | ||
@@ -14,5 +20,4 @@ "repository": { | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "a401d4f0ec12e0bdedf2175c6cf42462f4fc7178a8d8596faf98029fc6039787", | ||
"typesPublisherContentHash": "ee955d36000344d4b8085445676ba466e4af18c03637a0506a6b06cc86ebad89", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/comment-json | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/comment-json | ||
Additional Details | ||
* Last updated: Sat, 28 Jan 2017 00:32:33 GMT | ||
* Last updated: Thu, 08 Feb 2018 16:09:03 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3819
20