You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heyyya! Thanks for creating this client. It works quickly and is easy to set up 🔥
One nuance I'd like to bring up is Typescript support. It's 2024 now and more and more code is written with types in mind. There's an open issue on this matter: #244
but it looks like:
a) there are no news or updates for ~1.5 years
b) PR with types mentioned there seems to be stuck outdated with WiP status (DefinitelyTyped/DefinitelyTyped#60589)
The actual types in the DefinitelyTyped project are relevant for the client v0.18, while the latest version of the client right now is v3.0.
In our project, not to play around with Java and openapi-generator-cli dependencies mentioned here, we decided to declare a mini .d.ts types file:
// file is /src/asana/asanaTypes.d.tsdeclare module 'asana'{exportclassApiClient{staticinstance: ApiClient;authentications: {token: {accessToken: string;};};}exportclassTasksApi{createTask(body: CreateTaskBody,opts?: any): Promise<CreateTaskResult>;}exporttypeCreateTaskBody={data: {name: string;notes: string;projects: string[];};};exporttypeCreateTaskResult={// Define the properties of the result as per Asana API's responseid: string;name: string;notes: string;};}
I wanted to clarify is there a plan in the roadmap to add a typescript support for v3.0 to either "definitely typed" or directly to this repo?
The text was updated successfully, but these errors were encountered:
Heyyya! Thanks for creating this client. It works quickly and is easy to set up 🔥
One nuance I'd like to bring up is Typescript support. It's 2024 now and more and more code is written with types in mind. There's an open issue on this matter: #244
but it looks like:
a) there are no news or updates for ~1.5 years
b) PR with types mentioned there seems to be stuck outdated with WiP status (DefinitelyTyped/DefinitelyTyped#60589)
The actual types in the
DefinitelyTyped
project are relevant for the clientv0.18
, while the latest version of the client right now isv3.0
.In our project, not to play around with
Java
andopenapi-generator-cli
dependencies mentioned here, we decided to declare a mini.d.ts
types file:I wanted to clarify is there a plan in the roadmap to add a typescript support for
v3.0
to either "definitely typed" or directly to this repo?The text was updated successfully, but these errors were encountered: