Git Product home page Git Product logo

amazon-pay-alexa-utils-for-nodejs's People

Contributors

amazon-auto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

amazon-pay-alexa-utils-for-nodejs's Issues

An accessor cannot be declared in an ambient context.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.