commercetools / commercetools/nodejs
Imports in typescript not working
Open
- Dominant language
- JavaScript
- Stars
- 77
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Imports in typescript do not work as described in the documentation.
### Expected Behavior
According to https://commercetools.github.io/nodejs/sdk/api/sdkMiddlewareAuth.html for example, we should be able to do
`import { createClient } from '@commercetools/sdk-client'`
### Current Behavior
But when I try it, it gives me the error
_Could not find a declaration file for module '@commercetools/sdk-client'._
### Possible Solution
Add type definitions to the packages or create @types/package-name ?
**Or did I miss something?**
Contributor guide
Assessment
This issue has not been assessed yet.