npm.io
0.2.34 • Published 2 years ago

@types/yamljs

Licence
MIT
Version
0.2.34
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Tim Jonischkat.