-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Hi! 👋 Somewhat related to #284, both the shipped types and the typescript example currently shown in the README
suggest this is possible:
import crowdin from '@crowdin/crowdin-api-client';
const { translationsApi } = new crowdin({
token: 'token',
organization: 'org'
});
However that results in a crowdin is not a constructor
error. It looks like you have to call new crowdin.default()
in order to correctly instantiate the class, like:
import crowdin from '@crowdin/crowdin-api-client';
const { translationsApi } = new crowdin.default({
token: 'token',
organization: 'org'
});
I think:
- the shipped types need updating to reflect this
- the Typescript example in the README needs updating to reflect this
shelimov
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed