diff --git a/packages/usb/package.json b/packages/usb/package.json index 05a9ad3..33874f0 100644 --- a/packages/usb/package.json +++ b/packages/usb/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@tsconfig/node10": "^1.0.8", "@types/node": "^10.0.0", - "typescript": "^4.5.2", - "@types/usb": "^1.5.3" + "@types/usb": "^1.5.4", + "typescript": "^4.5.2" } } diff --git a/packages/usb/src/index.ts b/packages/usb/src/index.ts index 18b34da..e42b48f 100644 --- a/packages/usb/src/index.ts +++ b/packages/usb/src/index.ts @@ -139,7 +139,6 @@ export default class USB extends Adapter<[]> { if (this.device) { try { this.device.close(); - // TODO: Update definitions when ready: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57557 usb.removeAllListeners('detach'); callback && callback(null);