appwrite-server-wrapper
Version:
Wrapper library to handle Appwrite methods including server handling using SSR with NextJS v15 (useActionState, useAction,...)
15 lines • 808 B
TypeScript
import { Attribute } from "./types";
export { Attribute, AttributeHandler, CollectionSchema, Index } from "./types";
export { createAttribute } from "./createAttribute";
export { updateAttribute } from "./updateAttribute";
export { getSchema } from "./schema";
/**
* Finds the attribute definition in the provided schema attributes for the given key.
*
* @param key - The attribute key to look up.
* @param schemaAttributes - The array of attribute definitions from your schema.
* @returns The matching attribute definition, or undefined if not found.
*/
export declare const getAttributeFromKey: (key: string, schemaAttributes: Attribute[]) => Attribute | undefined;
export declare const attributesEqual: (existingAttr: Attribute, schemaAttr: Attribute) => boolean;
//# sourceMappingURL=index.d.ts.map