commercetools / commercetools/nodejs

Typescript with SdkAuth

Open
#1,778 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
77
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Can the sdk-auth package be used in typescipt and are there types for it?

I get an error 'Could not find a declaration file for module '@commercetools/sdk-auth' when trying to import it:

The [example](https://github.com/commercetools/nodejs/blob/tutorials-graphql-typescript-sdk/docs/sdk/api/sdkAuth.md) is like this yet it doesn't work:
```js
import SdkAuth from "@commercetools/sdk-auth"
```

But it is possble to use the sdk-auth in common js #1541

Any help would be much appreciated!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.