Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type definition in index.d.ts seems to be wrong #243

Open
ghost opened this issue Aug 11, 2020 · 0 comments
Open

type definition in index.d.ts seems to be wrong #243

ghost opened this issue Aug 11, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 11, 2020

import * as SygicTravelSDK from 'sygic-travel-js-sdk';
const apiUrl: string = 'https://api.sygictravelapi.com/1.0/en/';
const clientKey: string = 'CLIENT_KEY'; // Get your client key at https://travel.sygic.com/b2b/api-key
const stSDK: SygicTravelSDK.StSDK = SygicTravelSDK.create(apiUrl, clientKey);
When I import from 'sygic-travel-js-sdk' to create an instance , and then
sygic.collections.getCollections({ containedPlaceIds: ["city:4395"] }, false,"")
the params will not pass to the request.

Following is the screenshot
image

And then I try import * as SygicTravelSDK from 'sygic-travel-js-sdk/src/StSDK'; It works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants