@types/json5
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -1,4 +0,5 @@ | ||
// Type definitions for JSON5 | ||
// Type definitions for JSON5 | ||
// Project: http://json5.org/ | ||
// Definitions by: Jason Swearingen <https://jasonswearingen.github.io> | ||
// Kacper Wiszczuk <https://github.com/Esemesek> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -43,3 +44,16 @@ | ||
*/ | ||
declare var json5: JSON; | ||
type JSONReplacer = (key: string, value: any) => any | (number | string)[] | null; | ||
interface JSON5 { | ||
// Old JSON methods | ||
parse(text: string, reviver?: (key: any, value: any) => any): any; | ||
stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; | ||
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string; | ||
// New JSON5 stringify function | ||
stringify(value: any, options?: { space?: number | string, quote?: string, replacer?: JSONReplacer }): string; | ||
} | ||
declare var json5: JSON5; | ||
export = json5; |
{ | ||
"name": "@types/json5", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "TypeScript definitions for JSON5", | ||
"license": "MIT", | ||
"author": "Jason Swearingen <https://jasonswearingen.github.io>", | ||
"contributors": [ | ||
{ | ||
"name": "Jason Swearingen", | ||
"url": "https://jasonswearingen.github.io" | ||
}, | ||
{ | ||
"name": "Kacper Wiszczuk", | ||
"url": "https://github.com/Esemesek", | ||
"githubUsername": "Esemesek" | ||
} | ||
], | ||
"main": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "1ed77f2bfd59d290798abf89db281c36565f4a78d97d4e9caab25319d54c6331" | ||
"typesPublisherContentHash": "731c5be92e0a26e32524b0be140aa3ae99eecb2c702c1625afe2f35908283dd4", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,12 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/json5 | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json5 | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Global values: json5 | ||
* Last updated: Tue, 21 Aug 2018 16:28:53 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Jason Swearingen <https://jasonswearingen.github.io>. | ||
These definitions were written by Jason Swearingen <https://jasonswearingen.github.io>, Kacper Wiszczuk <https://github.com/Esemesek>. |
4250
36
17