apply tsfmt to yamljs

This commit is contained in:
vvakame
2015-08-13 23:33:09 +09:00
parent 6780badbce
commit ee98916e28
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -6,8 +6,8 @@ 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' } });
yamljs.stringify({ a : 'val', b : { ba : 123, bb : 'nothing' }}, 1);
yamljs.stringify({ a: 'val', b: { ba: 123, bb: 'nothing' } }, 1);
yamljs.stringify({ a : 'val', b : { ba : 123, bb : 'nothing' }}, 1, 2);
yamljs.stringify({ a: 'val', b: { ba: 123, bb: 'nothing' } }, 1, 2);
+3 -3
View File
@@ -4,11 +4,11 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare namespace YAML {
function load(path : string) : any;
function load(path: string): any;
function stringify(nativeObject : any, inline? : number, spaces? : number) : string;
function stringify(nativeObject: any, inline?: number, spaces?: number): string;
function parse(yamlString : string) : any;
function parse(yamlString: string): any;
}
declare module "yamljs" {