thegecko/webusb

can not compile with typescript > 2.7

Closed this issue · 2 comments

there is some change with the type api in typescript 2.7 such that lodash types do not compile

node_modules/@types/lodash/index.d.ts(12651,53): error TS2344: Type 'T' does not satisfy the constraint 'object'.

see similar issues here: DefinitelyTyped/DefinitelyTyped#23375

I'll add a constraint to the package.json

aj-r commented

Looks like this has been fixed in the latest version of lodash (4.14.103). Try running npm install -S @types/lodash@latest (or similar in yarn) with TS 2.7, and see if that fixes it.

Fixed in #8 I believe