@types/yaml
Advanced tools
Comparing version 1.0.2 to 1.2.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for yaml 1.0 | ||
// Type definitions for yaml 1.2 | ||
// Project: https://github.com/eemeli/yaml, https://eemeli.org/yaml | ||
@@ -53,3 +53,4 @@ // Definitions by: Ika <https://github.com/ikatyang> | ||
value: any, | ||
wrapScalars?: true | ||
wrapScalars?: true, | ||
tag?: string | ||
): ast.MapBase | ast.SeqBase | ast.Scalar; | ||
@@ -66,3 +67,4 @@ | ||
value: any, | ||
wrapScalars: false | ||
wrapScalars: false, | ||
tag?: string | ||
): ast.MapBase | ast.SeqBase | string | number | boolean | null; | ||
@@ -93,2 +95,6 @@ | ||
/** | ||
* When outputting JS, use Map rather than Object to represent mappings. By default `false`. | ||
*/ | ||
mapAsMap?: boolean; | ||
/** | ||
* Enable support for `<<` merge keys. | ||
@@ -117,2 +123,6 @@ */ | ||
/** | ||
* An optional factory function, used e.g. by collections when wrapping JS objects as AST nodes. | ||
*/ | ||
createNode?: (value: any) => ast.MapBase | ast.SeqBase | ast.Scalar; | ||
/** | ||
* If `true`, the tag should not be explicitly included when stringifying. | ||
@@ -126,2 +136,6 @@ */ | ||
/** | ||
* The `Node` child class that implements this tag. Required for collections and tags that have overlapping JS representations. | ||
*/ | ||
nodeClass?: new () => any; | ||
/** | ||
* Used by some tags to configure their stringification, where applicable. | ||
@@ -292,2 +306,6 @@ */ | ||
interface BlankLine extends Node { | ||
type: "BLANK_LINE"; | ||
} | ||
interface MapItem extends Node { | ||
@@ -309,3 +327,3 @@ type: "MAP_KEY" | "MAP_VALUE"; | ||
/** implicit keys are not wrapped */ | ||
items: Array<Comment | Alias | Scalar | MapItem>; | ||
items: Array<BlankLine | Comment | Alias | Scalar | MapItem>; | ||
} | ||
@@ -320,3 +338,3 @@ | ||
type: "SEQ"; | ||
items: Array<Comment | SeqItem>; | ||
items: Array<BlankLine | Comment | SeqItem>; | ||
} | ||
@@ -332,3 +350,3 @@ | ||
type: "FLOW_MAP" | "FLOW_SEQ"; | ||
items: Array<FlowChar | Comment | Alias | Scalar | FlowCollection>; | ||
items: Array<FlowChar | BlankLine | Comment | Alias | Scalar | FlowCollection>; | ||
} | ||
@@ -356,4 +374,4 @@ | ||
type: "DOCUMENT"; | ||
directives: Array<Comment | Directive>; | ||
contents: Array<Comment | ContentNode>; | ||
directives: Array<BlankLine | Comment | Directive>; | ||
contents: Array<BlankLine | Comment | ContentNode>; | ||
readonly anchor: null; | ||
@@ -406,2 +424,6 @@ readonly comment: null; | ||
/** | ||
* a blank line before this node and its commentBefore | ||
*/ | ||
spaceBefore?: boolean; | ||
/** | ||
* Array of prefixes; each will have a string `handle` that | ||
@@ -502,2 +524,6 @@ * starts and ends with `!` and a string `prefix` that the handle will be replaced by. | ||
/** | ||
* a blank line before this node and its commentBefore | ||
*/ | ||
spaceBefore?: boolean; | ||
/** | ||
* a fully qualified tag, if required | ||
@@ -504,0 +530,0 @@ */ |
{ | ||
"name": "@types/yaml", | ||
"version": "1.0.2", | ||
"version": "1.2.0", | ||
"description": "TypeScript definitions for yaml", | ||
@@ -22,8 +22,9 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/yaml" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "9932232cfeb1a5a57397c83ff40ff8b0bea0fbda5377a7277dac714215c4dcbe", | ||
"typesPublisherContentHash": "5d6abd39471d0da3b3bb44b833c73a41f197224264434380ea8a7d9cd69b3c87", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for yaml ( https://github.com/eemeli/yaml ). | ||
This package contains type definitions for yaml (https://github.com/eemeli/yaml). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Thu, 14 Feb 2019 01:27:57 GMT | ||
* Last updated: Mon, 07 Oct 2019 20:33:45 GMT | ||
* Dependencies: none | ||
@@ -18,2 +18,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Ika <https://github.com/ikatyang>, Colin Bradley <https://github.com/ColinBradley>. | ||
These definitions were written by Ika <https://github.com/ikatyang>, and Colin Bradley <https://github.com/ColinBradley>. |
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
22202
604