mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 17:08:21 +08:00
Update definitions and tests
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
/// <reference path="yamljs.d.ts" />
|
||||
|
||||
import yamljs = require('yamljs');
|
||||
var yamlObj = YAML.parse("test: some yaml");
|
||||
|
||||
yamljs.load('yaml-testfile.yml');
|
||||
YAML.stringify(yamlObj);
|
||||
|
||||
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);
|
||||
YAML.load("path/to/file.yaml");
|
||||
4
yamljs/yamljs.d.ts
vendored
4
yamljs/yamljs.d.ts
vendored
@@ -1,9 +1,9 @@
|
||||
// Type definitions for yamljs 0.2.1
|
||||
// Type definitions for yamljs 0.2.3
|
||||
// Project: https://github.com/jeremyfa/yaml.js
|
||||
// Definitions by: Tim Jonischkat <http://www.tim-jonischkat.de>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "yamljs" {
|
||||
declare module YAML {
|
||||
|
||||
export function load(path : string) : any;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user