In the templates there are always "any" as type... But is there any type declaration that i can use?
(And i don't want to write a whole type from scratch)
Edit: I tried the http types, but than the res.json is not valid. And i tried the express types, but than the res.status throws an error in appwrite
export default async ({ req, res, log, error }: {
req: someType;
res: someType;
log: (msg: any) => void;
error: (msg: any) => void;
}) => {}
Recommended threads
- Functions Failing on CRON Schedule
I set up an hourly CRON Schedule for my function and It only executes successfully every after 3 hours sometimes 10 hours. When I execute it manually it works e...
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...