amazon-paapi icon indicating copy to clipboard operation
amazon-paapi copied to clipboard

Typescript support

Open TheGrinch00 opened this issue 4 years ago • 6 comments

Hi, I'm trying to use your package with typescript but I could not find anywhere something like @types/amazon-paapi. How should I find those ans install via npm?

TheGrinch00 avatar Dec 06 '20 07:12 TheGrinch00

I created a typing myself. If you guys are interested you can get it here: https://gist.github.com/mattiaz9/3e31dbe50f573954d0f52cfcc6b220bf

Bear in mind that there may be errors or missing types.. I couldn't try the requests because of this #8

mattiaz9 avatar Sep 21 '21 12:09 mattiaz9

Thank you so much @mattiaz9!

I'll look forward to use it as soon as I can to give you feedback about any issue I can find but I'm afraid it won't be anytime soon bc lately I've been very busy at work.

Anyway at first glance it looks fine, so thank you again

TheGrinch00 avatar Sep 21 '21 16:09 TheGrinch00

I created a typing myself. If you guys are interested you can get it here: https://gist.github.com/mattiaz9/3e31dbe50f573954d0f52cfcc6b220bf

Bear in mind that there may be errors or missing types.. I couldn't try the requests because of this #8

How to use?

EliaTolin avatar Oct 17 '22 16:10 EliaTolin

How to use?

put the file amazon-paapi.d.ts inside your typings folder in your project.

Make sure you include the typings folder in the tsconfig.json:

{
  "include": [
    "typings"
  ]
}

mattiaz9 avatar Oct 17 '22 18:10 mattiaz9

@jorgerosal Can you please include the .d.ts file provided by @mattiaz9 in the project?

It is pretty straightforward and would benefit immensely the use of the package.

tka85 avatar Oct 09 '23 07:10 tka85