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
Use appwrite init function to create a Bun function or clone the Bun starter template https://github.com/appwrite/templates/tree/main/bun/starter
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?
@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.
👟 Reproduction steps
appwrite init function
to create a Bun function or clone the Bun starter templatehttps://github.com/appwrite/templates/tree/main/bun/starter
{ req, res, log, error }: any
destructured params are of typeany
👍 Expected behavior
There should be proper TypeScript typing for all four destructured parameters:
req
,res
,log
anderror
.👎 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?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: