node-asana
node-asana copied to clipboard
Provide Typescript definitions
Asana is listed as a friend of typescript so I would like to see a typescript definitions for this lib.
We'll happily accept a PR if anyone wants to contribute this.
@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.
Any update on this? The idea was to generate a new typescript asana API using the meta project?
Nothing has on our end. We'd happily accept a PR, but we aren't able to prioritise this ourselves.
Well some time passed, is there anything going on regarding official types? the types from @types/asana are more than wrong/broken.
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