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

Provide Typescript definitions

Open lazdmx opened this issue 9 years ago • 6 comments

Asana is listed as a friend of typescript so I would like to see a typescript definitions for this lib.

lazdmx avatar Apr 04 '16 11:04 lazdmx

We'll happily accept a PR if anyone wants to contribute this.

marcogallotta avatar May 30 '16 20:05 marcogallotta

@lazutkin This is something I have wanted for a long time. I think we are more likely to rewrite the library in TypeScript at this point. Another problem right now is that we do not have complete information on the return type for API responses. I would recommend checking out the Asana API meta project.

pspeter3 avatar May 30 '16 20:05 pspeter3

Any update on this? The idea was to generate a new typescript asana API using the meta project?

joekim avatar Oct 04 '16 08:10 joekim

Nothing has on our end. We'd happily accept a PR, but we aren't able to prioritise this ourselves.

marcogallotta avatar Oct 04 '16 22:10 marcogallotta

Well some time passed, is there anything going on regarding official types? the types from @types/asana are more than wrong/broken.

simllll avatar Sep 19 '21 16:09 simllll

Well I think it's quite easy to generate your own clien twith typecsript definitions :-)

openapi-generator-cli generate -p apiPackage=apipkg -p modelPackage=modelPkg -p withSeparateModelsAndApi=true -p modelPropertyNaming=original -p supportsES6=true -i https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml -g typescript-axios -o src/AsanaClient --skip-validate-spec && eslint --ext ts --fix src/AsanaClient

simllll avatar Sep 19 '21 16:09 simllll