UNPKG

appwrite-utils

Version:

`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. It provides a suite of utilities and helper functions that facilitate data manipulation, schema management, and seamless integrati

49 lines (48 loc) 1.13 kB
export interface AppwriteResponse { send: ( body: any, statusCode?: number, headers?: Record<string, string> ) => { body: any; statusCode: number; headers: Record<string, string> }; text: ( body: string | Uint8Array | Response, statusCode?: number, headers?: Record<string, string> ) => { body: Uint8Array; statusCode: number; headers: Record<string, string>; }; binary: ( bytes: Uint8Array, statusCode?: number, headers?: Record<string, string> ) => { body: Uint8Array; statusCode: number; headers: Record<string, string>; }; json: ( obj: any, statusCode?: number, headers?: Record<string, string> ) => { body: Uint8Array; statusCode: number; headers: Record<string, string>; }; empty: () => { body: Uint8Array; statusCode: number; headers: Record<string, string>; }; redirect: ( url: string, statusCode?: number, headers?: Record<string, string> ) => { body: Uint8Array; statusCode: number; headers: Record<string, string>; }; }