mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
348 B
TypeScript
14 lines
348 B
TypeScript
/// <reference path="yamljs.d.ts" />
|
|
|
|
import yamljs = require('yamljs');
|
|
|
|
yamljs.load('yaml-testfile.yml');
|
|
|
|
yamljs.parse('this_is_no_ymlstring');
|
|
|
|
yamljs.stringify({ a: 'val', b: { ba: 123, bb: 'nothing' } });
|
|
|
|
yamljs.stringify({ a: 'val', b: { ba: 123, bb: 'nothing' } }, 1);
|
|
|
|
yamljs.stringify({ a: 'val', b: { ba: 123, bb: 'nothing' } }, 1, 2);
|