Update definitions according to the pattern provided by Masahiro Wakame in order to work with nodejs as well

This commit is contained in:
Jason Saelhof
2015-08-05 15:04:49 -06:00
parent 2ee0d57fae
commit 84dc21b73b

14
yamljs/yamljs.d.ts vendored
View File

@@ -3,12 +3,14 @@
// Definitions by: Tim Jonischkat <http://www.tim-jonischkat.de>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module YAML {
declare var YAML: {
load(path : string) : any;
export function load(path : string) : any;
stringify(nativeObject : any, inline? : number, spaces? : number) : string;
export function stringify(nativeObject : any, inline? : number, spaces? : number) : string;
parse(yamlString : string) : any;
};
export function parse(yamlString : string) : any;
}
declare module "yamljs" {
export = YAML;
}