Closed grmiatov closed 6 years ago
Actually I have just extended the existing definitions with following code and it works as expected
declare module 'amazon-mws' {
// Enriched type definitions for amazon-mws
class AmazonMWSCall {
search(params: any): Promise<any>;
}
class AmazonMWS {
constructor()
constructor(key: string, token: string);
setApiKey(key: string, secret: string): void;
sellers: AmazonMWSCall;
orders: AmazonMWSCall;
finances: AmazonMWSCall;
reports: AmazonMWSCall;
}
namespace AmazonMWS {
}
export = AmazonMWS;
}
@miatidis Yes, It is in our plan and thanks to you for code snippets.
https://github.com/bhushankumarl/amazon-mws/releases/tag/v0.0.17 @miatidis Released with further type support.
Only the Reports API is included. Any plan to enrich it? Thank you