-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
The TypeScript version seems to be broken, even the examples don't compile #426
Labels
Comments
I have it too |
Try importing this: import type { CreateOrUpdateTicket } from "node-zendesk/dist/types/clients/core/tickets" and then adding the newly imported await client.tickets.create({ subject: 'New ticket', description: 'Ticket description' } as CreateOrUpdateTicket); |
Same here |
same here, types and signatures do not match for some reason |
Me too |
@blakmatrix Made a PR with a fix #434 Would appreciate some attention if you have time 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
The types are broken, the TypeScript code doesn't compile. I took an example from
node_modules/node-zendesk/dist/types/clients/core/tickets.d.ts
. Note the@example
:I took this code and created an app:
Example Code
Expected Behavior
The code to compile successfully.
Actual Behavior
There is a compilation error:
Environment Information
node-zendesk
version: 5.0.13Additional Context
Maybe the problem is in the TypeScript version?
The text was updated successfully, but these errors were encountered: