mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add typings for contextjs 2.1.1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import context = require("contextjs");
|
||||
|
||||
context.init();
|
||||
|
||||
context.settings({compress: true});
|
||||
|
||||
context.attach('#test', [
|
||||
{header: 'header 1'},
|
||||
{divider: true},
|
||||
{text:'foobar', submenu: [
|
||||
{text:'sub1'},
|
||||
{text:'sub2'}
|
||||
]}
|
||||
]);
|
||||
|
||||
context.destroy('#test');
|
||||
Reference in New Issue
Block a user