metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs
361 stars 185 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 11 months ago

ihor-protsenko-theraven commented 11 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 11 months ago

package.json dependencies

"dependencies": {

JesseTheRobot commented 10 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