alexa / amazon-pay-alexa-utils-for-nodejs Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I am using @amazonpay/amazon-pay-alexa-utils in an Alexa skill built with TypeScript and receiving the error above for several d.ts files, when attempting to compile.
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/AbstractDirectiveBuilder.d.ts:8:18 - error TS1086: An accessor cannot be declared in an ambient context.
8 abstract get Token(): string;
~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/AbstractDirectiveBuilder.d.ts:9:18 - error TS1086: An accessor cannot be declared in an ambient context.
9 abstract get Payload(): V;
~~~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/AbstractDirectiveBuilder.d.ts:10:18 - error TS1086: An accessor cannot be declared in an ambient context.
10 abstract get PayloadBuilder(): T;
~~~~~~~~~~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/charge/ChargeDirectiveBuilder.d.ts:9:9 - error TS1086: An accessor cannot be declared in an ambient context.
9 get Token(): string;
~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/charge/ChargeDirectiveBuilder.d.ts:10:9 - error TS1086: An accessor cannot be declared in an ambient context.
10 get Payload(): ChargeAmazonPayRequest;
~~~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/charge/ChargeDirectiveBuilder.d.ts:11:9 - error TS1086: An accessor cannot be declared in an ambient context.
11 get PayloadBuilder(): ChargePayloadBuilder;
~~~~~~~~~~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/setup/SetupDirectiveBuilder.d.ts:9:9 - error TS1086: An accessor cannot be declared in an ambient context.
9 get Token(): string;
~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/setup/SetupDirectiveBuilder.d.ts:10:9 - error TS1086: An accessor cannot be declared in an ambient context.
10 get Payload(): SetupAmazonPayRequest;
~~~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/checkout/setup/SetupDirectiveBuilder.d.ts:11:9 - error TS1086: An accessor cannot be declared in an ambient context.
11 get PayloadBuilder(): SetupPayloadBuilder;
~~~~~~~~~~~~~~
node_modules/@amazonpay/amazon-pay-alexa-utils/lib/model/SandboxSetting.d.ts:4:9 - error TS1086: An accessor cannot be declared in an ambient context.
4 get eMail(): string;
Adding the following to the tsconfig.json allows the compilation to succeed (see https://stackoverflow.com/questions/60092642/ts1086-an-accessor-cannot-be-declared-in-ambient-context):
"compilerOptions": {
"skipLibCheck": true
}
I can use the flag for now, but it would be great to have this issue resolved. Please let me know if more info is required.
I had problems passing the transactionTimeout as a string, so I think the transactionTimeout should be passed as a number.
I wrote the detail in the link below.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.