You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte-kit-vice/src/libs/active.ts

12 lines
353 B

export type ActiveChangeListener<TSnapshot> = (snapshot: TSnapshot) => void;
export interface ActiveEngine<TSnapshot, TError> {
readonly loading: boolean;
readonly lastError: TError | null;
readonly disposed: boolean;
snapshot(): TSnapshot;
clearError(): void;
onChange(listener: ActiveChangeListener<TSnapshot>): () => void;
dispose(): void;
}

Powered by TurnKey Linux.