Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/jotai/src/vanilla/utils.ts>unstable_withStorageValidator

👻 Primitive and flexible state management for React
Latest
function unstable_withStorageValidator
import { unstable_withStorageValidator } from "https://deno.land/x/jotai@v2.8.3/src/vanilla/utils.ts";

Parameters

validator: (value: unknown) => value is Value

Returns

{ (storage: AsyncStorage<unknown>): AsyncStorage<Value>; (storage: SyncStorage<unknown>): SyncStorage<Value>; }