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