UNPKG

metawrite

Version:

Appwrite SDK with ready to go components for Svelte / SvelteKit

50 lines (49 loc) 1.16 kB
import { SvelteComponentTyped } from "svelte"; declare const __propDef: { props: { endpoint: string; project: string; locale?: string; realtime?: string; }; events: { [evt: string]: CustomEvent<any>; }; slots: { default: {}; }; }; export declare type InitProps = typeof __propDef.props; export declare type InitEvents = typeof __propDef.events; export declare type InitSlots = typeof __propDef.slots; /** * ## Initialize * * Must be initialised and wrap every `metawrite` component. * * ```svelte * <script> * import { Appwrite } from "metawrite"; * * const config = { * endpoint: "http://localhost/v1", * project: "demo", * locale: "fr", * }; * </script> * * <Appwrite {...config}> * ... * </Appwrite> * ``` * * ### Properties * | Name | Description | * | --- | --- | * | `endpoint` | Your Appwrite endpoint. `@type - {string}` | * | `project` | Your project ID. `@type - {string}` | * | `locale` | _Optional_ The users locale. `@type - {string}` | */ export default class Init extends SvelteComponentTyped<InitProps, InitEvents, InitSlots> { } export {};