mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 13:37:35 +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);
|