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

index.d.ts lack of consturctor with token argument #69

Open
eric2788 opened this issue Oct 17, 2023 · 6 comments
Open

index.d.ts lack of consturctor with token argument #69

eric2788 opened this issue Oct 17, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@eric2788
Copy link

eric2788 commented Oct 17, 2023

I saw index.js has it but the declare module didn't.

adding constructor(token?: string); inside the export default class will fix the issue

image

image

using 2.3.1-stable.0

@YpsilonTM
Copy link

For some reason I can't even stop TS complaining even with adding the constructor

@Henrik-3
Copy link
Owner

Henrik-3 commented May 7, 2024

The current library is highly outdated, with some luck there will be a new one with API v4

@Henrik-3 Henrik-3 added the bug Something isn't working label May 7, 2024
@YpsilonTM
Copy link

I will be looking forward to it. I currently made my own simple wrapper for it on npmjs.org but an original from the API owner is always better 😄 ❤️

@eric2788
Copy link
Author

eric2788 commented May 7, 2024

I will be looking forward to it. I currently made my own simple wrapper for it on npmjs.org but an original from the API owner is always better 😄 ❤️

I am using swagger-codegen

@YpsilonTM
Copy link

YpsilonTM commented May 7, 2024

I am using swagger-codegen

it looks like it doesn't support TypeScript though :( or am I wrong?

@eric2788
Copy link
Author

eric2788 commented May 8, 2024

I am using swagger-codegen

it looks like it doesn't support TypeScript though :( or am I wrong?

nah I was using typescript-fetch before:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants