@types/oboe
Advanced tools
+8
-8
@@ -49,14 +49,14 @@ // Type definitions for oboe 2.1 | ||
| url: string; | ||
| method?: string; | ||
| headers?: Object; | ||
| method?: string | undefined; | ||
| headers?: Object | undefined; | ||
| body?: any; | ||
| cached?: boolean; | ||
| withCredentials?: boolean; | ||
| cached?: boolean | undefined; | ||
| withCredentials?: boolean | undefined; | ||
| } | ||
| interface FailReason { | ||
| thrown?: Error; | ||
| statusCode?: number; | ||
| body?: string; | ||
| jsonBody?: Object; | ||
| thrown?: Error | undefined; | ||
| statusCode?: number | undefined; | ||
| body?: string | undefined; | ||
| jsonBody?: Object | undefined; | ||
| } | ||
@@ -63,0 +63,0 @@ |
| { | ||
| "name": "@types/oboe", | ||
| "version": "2.1.0", | ||
| "version": "2.1.1", | ||
| "description": "TypeScript definitions for oboe", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oboe", | ||
| "license": "MIT", | ||
@@ -24,4 +25,4 @@ "contributors": [ | ||
| }, | ||
| "typesPublisherContentHash": "29bbb63e2fd41201fd8195f68472bb7ef1d8e97992d09b146e97a1d0b951a608", | ||
| "typeScriptVersion": "3.4" | ||
| "typesPublisherContentHash": "0c02b1579e187cee68b20a7534a7d6623742ffb8043807e4a0e5243516cf6487", | ||
| "typeScriptVersion": "3.6" | ||
| } |
+76
-1
@@ -9,5 +9,80 @@ # Installation | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oboe. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oboe/index.d.ts) | ||
| ````ts | ||
| // Type definitions for oboe 2.1 | ||
| // Project: https://github.com/jimhigson/oboe.js | ||
| // Definitions by: Jared Klopper <https://github.com/optical> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| /// <reference types="node" /> | ||
| declare namespace oboe { | ||
| interface OboeFunction extends Function { | ||
| drop: Object; | ||
| (url: string): Oboe; // simple fetch the url | ||
| (options: Options): Oboe; // fetch with full parameters | ||
| (stream: NodeJS.ReadableStream): Oboe; // read data from the given Node stream | ||
| (): Oboe; // parse data given by the emit() calls | ||
| } | ||
| interface Oboe { | ||
| done(callback: (result: any) => void): Oboe; | ||
| fail(callback: (result: FailReason) => void): Oboe; | ||
| node(pattern: string, callback: CallbackSignature): Oboe; | ||
| node(patterns: PatternMap): Oboe; | ||
| on(event: string, pattern: string, callback: CallbackSignature): Oboe; | ||
| on(eventPattern: string, callback: CallbackSignature): Oboe; | ||
| path(pattern: string, callback: CallbackSignature): Oboe; | ||
| path(listeners: any): Oboe; | ||
| removeListener(eventPattern: string, callback: CallbackSignature): Oboe; | ||
| removeListener(event: string, pattern: string, callback: CallbackSignature): Oboe; | ||
| start(callback: (status: number, headers: Object) => void): Oboe; | ||
| abort():void; | ||
| emit(message: 'data' | 'end', data?: string): void; | ||
| source: string; | ||
| } | ||
| interface CallbackSignature { | ||
| (node: any, pathOrHeaders: any, ancestors: Object[]): any; | ||
| } | ||
| interface Options { | ||
| url: string; | ||
| method?: string | undefined; | ||
| headers?: Object | undefined; | ||
| body?: any; | ||
| cached?: boolean | undefined; | ||
| withCredentials?: boolean | undefined; | ||
| } | ||
| interface FailReason { | ||
| thrown?: Error | undefined; | ||
| statusCode?: number | undefined; | ||
| body?: string | undefined; | ||
| jsonBody?: Object | undefined; | ||
| } | ||
| interface PatternMap { | ||
| [pattern: string]: CallbackSignature | ||
| } | ||
| } | ||
| declare var oboe: oboe.OboeFunction; | ||
| export = oboe; | ||
| export as namespace oboe; | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Tue, 02 Mar 2021 22:38:29 GMT | ||
| * Last updated: Thu, 08 Jul 2021 18:51:44 GMT | ||
| * Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +89,0 @@ * Global values: `oboe` |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6899
55.38%0
-100%92
441.18%