Simple wrapper around appwrite-types for making stanadlone functions be just the tiniest bit smaller.
In your function, run:
pnpm i @awfn/define-handler
import { defineHandler } from '@awfn/define-handler';
export default defineHandler(async (req, res) => {
// req & res are now fully typed
res.send('Hello, world!');
});