ericblade / mws-simple

nodejs Amazon MWS (Merchant Web Services) API in ~150 lines of code
MIT License
8 stars 5 forks source link

Typescript Conversion / Interface adjustments #67

Closed ericblade closed 4 years ago

ericblade commented 4 years ago

Making basic usage of TypeScript. Altered return values for error conditions to be 'null' instead of 'undefined', due to the use of TypeScript transpilation, interface for CommonJS users (ie, standard node, not using any bundlers) may now become

const MWS = require('@ericblade/mws-simple').default;

instead of

const MWS = require('@ericblade/mws-simple');

of course bundle users and ES6 module users should be able to continue using

import MWS from '@ericblade/mws-simple';
ericblade commented 4 years ago

:tada: This PR is included in version 5.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: