@types/yamljs
Version:
TypeScript definitions for yamljs
32 lines (22 loc) • 896 B
Markdown
# Installation
> `npm install --save @types/yamljs`
# Summary
This package contains type definitions for yamljs (https://github.com/jeremyfa/yaml.js).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yamljs.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yamljs/index.d.ts)
````ts
export as namespace YAML;
export = YAML;
declare namespace YAML {
function load(path: string): any;
function load(path: string, callback: (res: any) => void): void;
function stringify(nativeObject: any, inline?: number, spaces?: number): string;
function parse(yamlString: string): any;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
* Dependencies: none
# Credits
These definitions were written by [Tim Jonischkat](http://www.tim-jonischkat.de).