tzkt / api-sdk-ts

Typed SDK for TzKT API
https://sdk.tzkt.io
MIT License
16 stars 0 forks source link

Compatibility with recent taquito #19

Open 852Kerfunkle opened 1 year ago

852Kerfunkle commented 1 year ago

Heya, and thank you!

It seems to work quite nicely :)

Small issue: it's not quite compatible with more recent versions of taquito. At best type errors (15.0), at worst runtime errors (15.1).

852Kerfunkle commented 1 year ago

Ok, so the 15.1 issues seems to be a general issue with taquito - not sure how that only showed up now. Package managers...

Type error I get with 15.0:

Argument of type 'TzktExtension' is not assignable to parameter of type 'Extension | Extension[]'.
  Type 'TzktExtension' is not assignable to type 'Extension'.
    Types of property 'configureContext' are incompatible.
      Type '(context: import("[...]/node_modules/@tzkt/ext-taquito/node_modules/@taquito/taquito/dist/types/context").Context) => void' is not assignable to type '(context: import("[...]/node_modules/@taquito/taquito/dist/types/context").Context) => void'.
        Types of parameters 'context' and 'context' are incompatible.
          Type 'import("[...]/node_modules/@taquito/taquito/dist/types/context").Context' is not assignable to type 'import("[...]/node_modules/@tzkt/ext-taquito/node_modules/@taquito/taquito/dist/types/context").Context'.
            Types have separate declarations of a private property '_rpc'.