JSPM

@itznotabug/aft

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q23907F

A type declaration package for Appwrite Cloud Functions.

Package Exports

  • @itznotabug/aft
  • @itznotabug/aft/index.d.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@itznotabug/aft) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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