Sha256: c5a14bdeb170e0e67fb4200c54e0e02fd0ec94aca894c212c9d43c2916891542

Contents?: true

Size: 1.18 KB

Versions: 52

Compression:

Stored size: 1.18 KB

Contents

// Type definitions for JSON5
// Project: http://json5.org/
// Definitions by: Jason Swearingen <https://jasonswearingen.github.io>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped


//commonjs loader

/** 
 * The following is the exact list of additions to JSON's syntax introduced by JSON5. All of these are optional, and all of these come from ES5.

Objects

Object keys can be unquoted if they're valid identifiers. Yes, even reserved keywords (like default) are valid unquoted keys in ES5 [§11.1.5, §7.6]. (More info)

(TODO: Unicode characters and escape sequences aren’t yet supported in this implementation.)

Objects can have trailing commas.

Arrays

Arrays can have trailing commas.
Strings

Strings can be single-quoted.

Strings can be split across multiple lines; just prefix each newline with a backslash. [ES5 §7.8.4]

Numbers

Numbers can be hexadecimal (base 16).

Numbers can begin or end with a (leading or trailing) decimal point.

Numbers can include Infinity, -Infinity, NaN, and -NaN.

Numbers can begin with an explicit plus sign.

Comments

Both inline (single-line) and block (multi-line) comments are allowed.
  */
declare var json5: JSON;
export = json5;

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
rapid_stack-0.1.1 templates/FrontEnd/node_modules/@types/json5/index.d.ts
rapid_stack-0.1.0 templates/FrontEnd/node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.60 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.59 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.58 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.57 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.56 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.55 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.54 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.53 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.52 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.51 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.50 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.49 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.48 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.47 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.46 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.45 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.44 node_modules/@types/json5/index.d.ts
immosquare-cleaner-0.1.43 node_modules/@types/json5/index.d.ts