UNPKG

@statezero/core

Version:

The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate

16 lines (15 loc) 546 B
/** * Register an adapter's reset function * @param {Function} resetFn - Function to call during StateZero reset */ export function registerAdapterReset(resetFn: Function): void; /** * Unregister an adapter's reset function * @param {Function} resetFn - Function to remove */ export function unregisterAdapterReset(resetFn: Function): void; /** * Reset StateZero completely - clears all data and reconnects with fresh auth. * Call this after login to ensure clean authenticated state. */ export function resetStateZero(): Promise<void>;