0.1.12 • Published 2 months ago
@awfn/define-handler v0.1.12
@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!');
});