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

🐛 Bug Report: Function parameters are missing from TypeScript definition #98

Closed
2 tasks done
nickgatzoulis opened this issue Dec 7, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@nickgatzoulis
Copy link

👟 Reproduction steps

  1. Use appwrite init function to create a Bun function or clone the Bun starter template https://github.com/appwrite/templates/tree/main/bun/starter
  2. Observe that { req, res, log, error }: any destructured params are of type any

👍 Expected behavior

There should be proper TypeScript typing for all four destructured parameters: req, res, log and error.

👎 Actual Behavior

There are no type definitions for any of the parameters.

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

MacOS

🧱 Your Environment

v1.16.1

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@nickgatzoulis nickgatzoulis added the bug Something isn't working label Dec 7, 2024
@stnguyen90
Copy link
Contributor

@nickgatzoulis, thanks for raising this issue. This looks like the same request as appwrite/appwrite#7146, but for node. To consolidate, it would be best if you added a 👍🏼 to that issue.

And for the meantime, you can see the details of what's in the context here. Then you can define the types yourself.

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

2 participants