Merge pull request #5167 from jsaelhof/master

Update definitions and tests for yamljs
This commit is contained in:
Masahiro Wakame
2015-08-13 23:30:43 +09:00
+11 -9
View File
@@ -1,14 +1,16 @@
// Type definitions for yamljs 0.2.1
// Type definitions for yamljs 0.2.3
// Project: https://github.com/jeremyfa/yaml.js
// Definitions by: Tim Jonischkat <http://www.tim-jonischkat.de>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare var YAML: {
load(path : string) : any;
stringify(nativeObject : any, inline? : number, spaces? : number) : string;
parse(yamlString : string) : any;
};
declare module "yamljs" {
export function load(path : string) : any;
export function stringify(nativeObject : any, inline? : number, spaces? : number) : string;
export function parse(yamlString : string) : any;
}
export = YAML;
}