Closed babgyy closed 1 year ago
If it can help, I have reproduced the issue with a minimal setup on stackblitz here : https://stackblitz.com/edit/typescript-whunwk?file=index.ts
@babgyy Thank you for your help! We have identified the issue and I'm working on it.
@babgyy Hi! You can now bump the SDK's version to v6.0.4 and autocompletion should work. In VS Code you might also need to restart the Typescript server.
Hey @fpdrozd Thanks for working on it. I have tried v6.0.4, it's better : I have now autocompletion on IClientConfig
However IOrderResult does not seem to be exported, so I can't carry this type around in my code. Is it desired behavior ?
Context
I am using v6.0.3 of the SDK, and am trying to use the storefront checkout methods. The code works, but type definitions are listed as
any
, and autocompletion does not work.This sample for instance won't find type informations for
checkout
andorderUpdate
Expected Behavior
I am no typescript expert, but I think types should be inferred. Typing
should/could suggest autocompletions for method of the interface
Client
such as Checkout and so on ?This was working in a previous project using v4 of this SDK
Possible Fix
No idea
Your Environment
I am using VSCode