@zag-js/svelte
Version:
The svelte wrapper for zag
10 lines (9 loc) • 327 B
TypeScript
import type { Bindable, BindableParams } from "@zag-js/core";
export declare function bindable<T>(props: () => BindableParams<T>): Bindable<T>;
export declare namespace bindable {
var cleanup: (fn: VoidFunction) => void;
var ref: <T>(defaultValue: T) => {
get: () => T;
set: (next: T) => void;
};
}