@written/appwrite-types
TypeScript icon, indicating that this package has built-in type declarations

0.2.17 • Public • Published

Written Logo

@written/appwrite-types

Typesafety brought to Appwrite Functions.

Codeberg License

Installation

Run pnpm i -D @written/appwrite-types in your function.

Usage

import type AppwriteFunction from '@written/appwrite-types';

export default (ctx => {
  // ...
  return ctx.json(
    {
      success: true,
      message: 'Hello, World!',
    },
    200,
    {
      'x-test': '1',
    },
  );
}) satisfies AppwriteFunction;

Note

A lot of @written packages use this for typesafety. If you're using one of these, you will want this package installed, however you will not need to ever directly interact with it.

This is a peer dependency of these as its not strictly required if you're not using TypeScript.

/@written/appwrite-types/

    Package Sidebar

    Install

    npm i @written/appwrite-types

    Weekly Downloads

    1

    Version

    0.2.17

    License

    MIT

    Unpacked Size

    46.2 kB

    Total Files

    10

    Last publish

    Collaborators

    • exponentialworkload