mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Fix header and make use of tabs consistent in both tests and definition.
This commit is contained in:
+21
-21
@@ -2,33 +2,33 @@
|
||||
import oboe = require('oboe');
|
||||
|
||||
oboe('friends.json')
|
||||
.node('name', function (name) {
|
||||
console.log('You have a friend called', name);
|
||||
}).on('node', '{name dob address}', function (personJson) {
|
||||
console.log('Name is: %s', personJson.name);
|
||||
}).on('node', 'person.address', function (address) {
|
||||
return oboe.drop;
|
||||
})
|
||||
.node('name', function (name) {
|
||||
console.log('You have a friend called', name);
|
||||
}).on('node', '{name dob address}', function (personJson) {
|
||||
console.log('Name is: %s', personJson.name);
|
||||
}).on('node', 'person.address', function (address) {
|
||||
return oboe.drop;
|
||||
})
|
||||
|
||||
var friendCount = 0;
|
||||
oboe('friends.json')
|
||||
.path('friend', function (name) {
|
||||
friendCount++;
|
||||
});
|
||||
.path('friend', function (name) {
|
||||
friendCount++;
|
||||
});
|
||||
|
||||
oboe('resource.json')
|
||||
.on('done', function (parsedJson) {
|
||||
console.log('Request complete', parsedJson);
|
||||
});
|
||||
.on('done', function (parsedJson) {
|
||||
console.log('Request complete', parsedJson);
|
||||
});
|
||||
|
||||
oboe('resource.json')
|
||||
.on('start', function (status, headers) {
|
||||
console.log('Resource cached for', headers.Age, 'secs');
|
||||
});
|
||||
.on('start', function (status, headers) {
|
||||
console.log('Resource cached for', headers.Age, 'secs');
|
||||
});
|
||||
|
||||
oboe('/content')
|
||||
.fail(function (errorReport) {
|
||||
if (404 == errorReport.statusCode) {
|
||||
console.error('no such content');
|
||||
}
|
||||
});
|
||||
.fail(function (errorReport) {
|
||||
if (404 == errorReport.statusCode) {
|
||||
console.error('no such content');
|
||||
}
|
||||
});
|
||||
|
||||
Vendored
+3
-3
@@ -1,6 +1,6 @@
|
||||
// Type definitions for [LIBRARY NAME]
|
||||
// Project: [LIBRARY URL]
|
||||
// Definitions by: [AUTHOR NAME] <[AUTHOR URL]>
|
||||
// Type definitions for oboe v2.0.3
|
||||
// Project: https://github.com/jimhigson/oboe.js
|
||||
// Definitions by: Jared Klopper <https://github.com/optical>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
Reference in New Issue
Block a user