node-wpapi icon indicating copy to clipboard operation
node-wpapi copied to clipboard

Add generated types declaration for minimal typescript support

Open Shelob9 opened this issue 5 years ago • 1 comments

Typescript support would be great. Automatically generating types, without having to fully re-write this in typescript is an easier first step.

To build this file -- in another projec that had wpapi installed, I added a directory called "types" than I ran npx dts-gen -m wpapi -d wpapi. I copied types/index.d.ts into wpai.

So, if this manual way is good enough for now, then automating that process would be the next step to make this useful.

Would fix #149

Shelob9 avatar Oct 30 '19 17:10 Shelob9

@Shelob9 check this PR https://github.com/Shelob9/node-wpapi/pull/1 it will merge in your feature/149 branch

iamandrewluca avatar Nov 01 '19 11:11 iamandrewluca