Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript types #57

Open
auguster opened this issue Feb 18, 2022 · 3 comments
Open

Typescript types #57

auguster opened this issue Feb 18, 2022 · 3 comments
Assignees

Comments

@auguster
Copy link

I use @clevercloud/client a lot in my nodejs typescript programs and it would be really helpful if the typescript types where available somewhere. I have to do a lot of trial, error, debug, back and forth between your code and your API to figure out what arguments are expected and what will be returned by each call.

It would save a great deal of hassle with the types.

@hsablonniere
Copy link
Member

Hello @auguster, glad to know you're using it 😉
This is something we want to improve, whether it's just JSDoc and/or TypeScript types.
I can't give you an ETA but we'll report our progress here.

@lovasoa
Copy link

lovasoa commented Aug 26, 2024

Hi @auguster , @hsablonniere ! I am late to the party, but I would also love to see typescript types added to the package. You can create a typing file automatically from your js files and publish it, that would already make life much easier !

https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html

@miton18 miton18 self-assigned this Aug 29, 2024
@miton18
Copy link
Contributor

miton18 commented Sep 2, 2024

Hi @lovasoa , we will work soon on a version which is built on OpenAPI specification, types will come from it.
We have to fix some part of the spec before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants