mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Update definitions according to the pattern provided by Masahiro Wakame in order to work with nodejs as well
This commit is contained in:
14
yamljs/yamljs.d.ts
vendored
14
yamljs/yamljs.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user