@awfn/define-handler
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

Written Logo

@awfn/define-handler

Simple wrapper around appwrite-types for making stanadlone functions be just the tiniest bit smaller.

Codeberg License

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!');
});

/@awfn/define-handler/

    Package Sidebar

    Install

    npm i @awfn/define-handler

    Weekly Downloads

    1

    Version

    0.1.12

    License

    MIT

    Unpacked Size

    6.55 kB

    Total Files

    10

    Last publish

    Collaborators

    • exponentialworkload