Sam KOriginal post
@everyone
Hello folks,
I have a question regarding the Context type in the main function in index.ts. I have checked the node-appwrite sdk in index.d.ts and nothing there.
Plain text
req: any res: any log: (msg: any) => void error: (msg: any) => void}
export default async ({ req, res, log, error }: Context) => {}Summary
Hey developers!
I'm trying to understand the `Context` type in the `node-appwrite` SDK with TypeScript. I checked the `index.d.ts` file but couldn't find any information on it.
Here's the code:
```typescript
type Context = {
req: any
res: any
log: (msg: any) => void
error: (msg: any) => void
}
export default async ({ req, res, log, error }: Context) => {}
```
Any ideas on how to properly define the types for the `req` and `res` objects?
Solution: The