mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
32 lines
604 B
TypeScript
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);
|