ensdomains / ensjs

ENS javascript library for contract interaction
MIT License
120 stars 56 forks source link

Error TS2526: A 'this' type is available only in a non-static member of a class or interface #149

Closed sherpya closed 8 months ago

sherpya commented 1 year ago
node_modules/@ensdomains/ensjs/dist/types/index.d.ts:604:159 - error TS2526: A 'this' type is available only in a non-static member of a class or interface.

604             every<S extends string | boolean>(predicate: (value: string | boolean, index: number, array: (string | boolean)[]) => value is S, thisArg?: any): this is S[];
                                                                                                                                                                  ~~~~

Found 1 error in node_modules/@ensdomains/ensjs/dist/types/index.d.ts:604

while using in a typescript project

ghost commented 1 year ago
node_modules/@ensdomains/ensjs/dist/types/index.d.ts:604:159 - error TS2526: A 'this' type is available only in a non-static member of a class or interface.

604             every<S extends string | boolean>(predicate: (value: string | boolean, index: number, array: (string | boolean)[]) => value is S, thisArg?: any): this is S[];
                                                                                                                                                                  ~~~~

Found 1 error in node_modules/@ensdomains/ensjs/dist/types/index.d.ts:604

while using in a typescript project

sherpya commented 1 year ago

?

TateB commented 8 months ago

add skipLibCheck: true to your tsconfig to fix this