@types/usb
Advanced tools
Comparing version 1.1.3 to 1.1.4
// Type definitions for node-usb 1.1 | ||
// Project: https://github.com/nonolith/node-usb | ||
// Project: https://github.com/tessel/node-usb | ||
// Definitions by: Eric Brody <https://github.com/underscorebrody> | ||
@@ -8,2 +8,4 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
import { EventEmitter } from "events"; | ||
export class Device { | ||
@@ -85,3 +87,3 @@ timeout: number; | ||
export interface Endpoint { | ||
export interface Endpoint extends EventEmitter { | ||
direction: string; | ||
@@ -93,3 +95,3 @@ transferType: number; | ||
export class InEndpoint implements Endpoint { | ||
export class InEndpoint extends EventEmitter implements Endpoint { | ||
direction: string; | ||
@@ -101,7 +103,7 @@ transferType: number; | ||
transfer(length: number, callback: (error: string, data: Buffer) => void): InEndpoint; | ||
startPoll(nTransfers: number, transferSize: number): void; | ||
stopPoll(cb: () => void): void; | ||
startPoll(nTransfers?: number, transferSize?: number): void; | ||
stopPoll(cb?: () => void): void; | ||
} | ||
export class OutEndpoint implements Endpoint { | ||
export class OutEndpoint extends EventEmitter implements Endpoint { | ||
direction: string; | ||
@@ -108,0 +110,0 @@ transferType: number; |
{ | ||
"name": "@types/usb", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "TypeScript definitions for node-usb", | ||
@@ -9,3 +9,4 @@ "license": "MIT", | ||
"name": "Eric Brody", | ||
"url": "https://github.com/underscorebrody" | ||
"url": "https://github.com/underscorebrody", | ||
"githubUsername": "underscorebrody" | ||
} | ||
@@ -20,7 +21,7 @@ ], | ||
"dependencies": { | ||
"@types/events": "*", | ||
"@types/node": "*" | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "a47a1f9f0fdd827ff94e563156641a6aa18d0354c2eb1770dd6cc488a8541978", | ||
"typesPublisherContentHash": "787bd60b615553482a87e0666da1c826562a116212306059c647a59d58c75fe1", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for node-usb (https://github.com/nonolith/node-usb). | ||
This package contains type definitions for node-usb (https://github.com/tessel/node-usb). | ||
@@ -12,4 +12,4 @@ # Details | ||
Additional Details | ||
* Last updated: Mon, 17 Apr 2017 17:55:17 GMT | ||
* Dependencies: node | ||
* Last updated: Wed, 13 Dec 2017 19:13:38 GMT | ||
* Dependencies: events, node | ||
* Global values: none | ||
@@ -16,0 +16,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10348
215
2
+ Added@types/events@*
+ Added@types/events@3.0.3(transitive)