mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add tests for oboe node function and remove superfluous oboe declaration.
This commit is contained in:
@@ -32,3 +32,18 @@ oboe('/content')
|
||||
console.error('no such content');
|
||||
}
|
||||
});
|
||||
|
||||
oboe('friends.json')
|
||||
.node('friend', function (parsedJson) {
|
||||
console.log('friend parsed', parsedJson);
|
||||
});
|
||||
|
||||
oboe('friends.json')
|
||||
.node({
|
||||
'friend': function (parsedJson) {
|
||||
console.log('friend parsed', parsedJson);
|
||||
},
|
||||
'!': function (parsedJson) {
|
||||
console.log('root parsed', parsedJson);
|
||||
}
|
||||
});
|
||||
|
||||
Vendored
-1
@@ -65,6 +65,5 @@ declare module oboe {
|
||||
declare var oboe: oboe.OboeFunction;
|
||||
|
||||
declare module "oboe" {
|
||||
var oboe: oboe.OboeFunction;
|
||||
export = oboe;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user