UNPKG

@sovgut/state

Version:

<p align="center"> <b>A lightweight, type-safe, and reactive state management library for modern web applications</b> </p>

18 lines (17 loc) 618 B
/** * Error thrown when a value cannot be cast to the requested type in strict mode */ export declare class StateInvalidCast extends Error { key: string; storage: string; value: unknown; type: string; /** * Creates a new StateInvalidCast error * @param key - The key of the value that failed to cast * @param storage - The storage type where the value is stored * @param value - The actual value that failed to cast * @param type - The target type that the cast failed to */ constructor(key: string, storage: string | undefined, value: unknown, type: string); }