Closed sam-goodwin closed 2 years ago
Hi Sam, The services.skillManagement.SkillManagementServiceClient is exported in the smapi sdk model: https://github.com/alexa/alexa-apis-for-nodejs/blob/master/ask-smapi-model/index.ts#L6772. Thus for now developer need to import the type from model seperately.
To better improve the user experience, I think we could re-export SkillManagementServiceClient in smapi sdk. Do you think it would be good enough for developers to use this type ?
Thanks, Shen
I'd prefer to avoid re-exporting types since it breaks jump-to-definition and confuses auto import.
closing as this is exposed in the model.
Why isn't the type of the client exported from
ask-smapi-sdk
?I am using the
ask-smapi-sdk
and noticed that theCustomSmapiClientBuilder
exposes a private type.Specifically:
But
SkillManagementServiceClient
is not exported:I'm trying to write a class that wraps the client:
If the type is private, what type am i supposed to put here?
The only way to use the client is with TypeScript type inference. That's unfortunate.