appwrite-utils
Version:
`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. Version 1.0.0 aligns with the YAML-first architecture of `appwrite-utils-cli`, providing enhanced integration capabilities and rob
33 lines (32 loc) • 1.11 kB
TypeScript
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>;
};
}