generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Environment
JavaScript 1.7.0
Describe the bug
Whenever a enum is used in the type declarations, it refers to an instance of a class, not to a constant
To Reproduce
new PricingSpAoi(...).getCompetitiveSummary({
requests: [
{
method: 'GET',
// -> The type "string" cannot be assigned to the type "HttpMethod"
asin: '...',
marketplaceId: '...',
includedData: ['featuredBuyingOptions'],
// -> The type "string" cannot be assigned to the type "CompetitiveSummaryIncludedData"
}
]
})Expected behavior
No error
Additional context
Note, that HttpMethod and CompetitiveSummaryIncludedData are classes and not enums, so typescript expects an instance of a class here which is weird
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels