metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs
355 stars 182 forks source link

node_modules/@metaplex-foundation/js/node_modules/@irys/query/build/cjs/types.d.ts:50:58 - error TS1005: '?' expected. #540

Open ihor-protsenko-theraven opened 8 months ago

ihor-protsenko-theraven commented 8 months ago

Error: node_modules/@metaplex-foundation/js/node_modules/@irys/query/build/cjs/types.d.ts:50:58 - error TS1005: '?' expected.

50 [K in keyof T]?: T[K] extends (infer U extends object)[] ? Field<U> : T[K] extends object ? Field<T[K]> : boolean;

ihor-protsenko-theraven commented 8 months ago

package.json dependencies

"dependencies": {

JesseTheRobot commented 7 months ago

hey @ihor-protsenko-theraven , developer from Irys here - it looks like the fix is upgrading your typescript version to at least 4.7.0 - this error is a bug in TS