DefinitelyTyped/archy/archy-tests.ts
2015-02-22 23:21:10 +09:00

33 lines
642 B
TypeScript

/// <reference path="./archy.d.ts" />
import archy = require("archy");
var opts: archy.Options = {
};
var data: archy.Data = {
label: 'beep',
nodes: [
'ity',
{
label: 'boop',
nodes: [
{
label: 'o_O',
nodes: [
{
label: 'oh',
nodes: ['hello', 'puny']
},
'human'
]
},
'party\ntime!'
]
}
]
};
var str = archy(data);
console.log(str);