@types/usb
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -11,2 +11,6 @@ // Type definitions for node-usb 1.1 | ||
export class LibUSBException extends Error { | ||
errno: number; | ||
} | ||
export class Device { | ||
@@ -29,3 +33,3 @@ timeout: number; | ||
interface(addr: number): Interface; | ||
controlTransfer(bmRequestType: number, bRequest: number, wValue: number, wIndex: number, data_or_length: any, callback: (error?: string, buf?: Buffer) => void): Device; | ||
controlTransfer(bmRequestType: number, bRequest: number, wValue: number, wIndex: number, data_or_length: any, callback: (error?: LibUSBException, buf?: Buffer) => void): Device; | ||
getStringDescriptor(desc_index: number, callback: (error?: string, buf?: Buffer) => void): void; | ||
@@ -109,3 +113,3 @@ setConfiguration(desired: number, cb: (err?: string) => void): void; | ||
constructor(device: Device, descriptor: EndpointDescriptor); | ||
transfer(length: number, callback: (error: string, data: Buffer) => void): InEndpoint; | ||
transfer(length: number, callback: (error: LibUSBException, data: Buffer) => void): InEndpoint; | ||
startPoll(nTransfers?: number, transferSize?: number): void; | ||
@@ -121,4 +125,4 @@ stopPoll(cb?: () => void): void; | ||
constructor(device: Device, descriptor: EndpointDescriptor); | ||
transfer(buffer: Buffer, cb: (err?: string) => void): OutEndpoint; | ||
transferWithZLP(buf: Buffer, cb: (err?: string) => void): void; | ||
transfer(buffer: Buffer, cb: (err?: LibUSBException) => void): OutEndpoint; | ||
transferWithZLP(buf: Buffer, cb: (err?: LibUSBException) => void): void; | ||
} | ||
@@ -125,0 +129,0 @@ |
{ | ||
"name": "@types/usb", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "TypeScript definitions for node-usb", | ||
@@ -19,2 +19,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -26,7 +27,6 @@ "type": "git", | ||
"dependencies": { | ||
"@types/events": "*", | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "dabf4ac574472b442f867bb016e6ee095cbf4f6ec09e46433aaf43009dbeb2bf", | ||
"typesPublisherContentHash": "842ab08d6a2fc28d9263e558b98edb43a674d30bd086cb9672f8d791dc0b023a", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 29 Jun 2018 03:18:45 GMT | ||
* Dependencies: events, node | ||
* Last updated: Tue, 18 Dec 2018 23:36:05 GMT | ||
* Dependencies: @types/node | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
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
10932
1
227
- Removed@types/events@*
- Removed@types/events@3.0.3(transitive)