#Correct types for Context object in `node-appwrite` with typescript

4 messages · Page 1 of 1 (latest)

languid blaze
#

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.

  req: any
  res: any
  log: (msg: any) => void
  error: (msg: any) => void
}

export default async ({ req, res, log, error }: Context) => {}
arctic sage
languid blaze
#

typechecking, editor autocomplete. in express or fastity the req and res has types. That's what I am looking for 🙂

arctic sage