kit
    Preparing search index...
    • Super minifiable local/session Storage client creator with SSR safety

      Type Parameters

      Parameters

      • OptionaluseSessionStorage: boolean

      Returns {
          get: <TKey extends string, TValue = TConfig[TKey]>(
              key: TKey,
              transform?: (value: string) => TValue,
              defaultValue?: TValue | null,
          ) => NonNullable<TValue> | null;
          has: <TKey extends string, TValue = TConfig[TKey]>(
              key: TKey,
              defaultValue?: TValue,
          ) => boolean | NonNullable<TValue>;
          remove: <TKey extends string>(key: TKey) => void;
          set: <TKey extends string, TValue = TConfig[TKey]>(
              key: TKey,
              value?: TValue,
              transform?: (value: any) => string,
          ) => void;
      }