DefinitelyTyped/types/archy/archy-tests.ts
2017-03-24 14:27:52 -07:00

32 lines
604 B
TypeScript

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);