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
49 lines (48 loc) • 1.13 kB
text/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>;
};
}