@itznotabug/aft
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

#AFT - Appwrite Function Types

A type declaration package for Appwrite Functions.
This package provides TypeScript definitions for the request handling context in Appwrite Cloud Functions.

Compatible with Appwrite server versions 1.5.x and 1.6.x.

Installation

You can install the package via npm:

npm install @itznotabug/aft --save-dev

Usage

import {
    RuntimeContext,
    RuntimeRequest,
    RuntimeResponse,
    RuntimeOutput,
} from "@itznotabug/aft";

export default async (context: RuntimeContext): Promise<RuntimeOutput> => {
    const request: RuntimeRequest = context.req;
    const response: RuntimeResponse = context.res;

    return response.json({ message: "Hello, World!" });
};

Package Sidebar

Install

npm i @itznotabug/aft

Weekly Downloads

73

Version

0.0.2

License

none

Unpacked Size

6.23 kB

Total Files

4

Last publish

Collaborators

  • itznotabug