@contember/react-utils
Advanced tools
Comparing version 1.1.0-rc.4 to 1.1.0-rc.5
@@ -0,2 +1,3 @@ | ||
/// <reference types="react" /> | ||
export declare const useForceRender: () => import("react").DispatchWithoutAction; | ||
//# sourceMappingURL=useForceRender.d.ts.map |
@@ -0,2 +1,3 @@ | ||
/// <reference types="react" /> | ||
export declare const useIsMounted: () => import("react").MutableRefObject<boolean>; | ||
//# sourceMappingURL=useIsMounted.d.ts.map |
import { Serializable } from '../types'; | ||
declare type SetState<V extends Serializable> = (value: V | ((current: V) => V)) => void; | ||
declare type ValueInitializer<V extends Serializable> = (storedValue: V | undefined) => V; | ||
type SetState<V extends Serializable> = (value: V | ((current: V) => V)) => void; | ||
type ValueInitializer<V extends Serializable> = (storedValue: V | undefined) => V; | ||
export declare const useSessionStorageState: <V extends Serializable>(key: string, initializeValue: ValueInitializer<V>) => [V, SetState<V>]; | ||
export {}; | ||
//# sourceMappingURL=useStoredState.d.ts.map |
@@ -1,4 +0,4 @@ | ||
export declare type Serializable = string | number | boolean | null | readonly Serializable[] | { | ||
export type Serializable = string | number | boolean | null | readonly Serializable[] | { | ||
readonly [K in string]?: Serializable; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@contember/react-utils", | ||
"license": "Apache-2.0", | ||
"version": "1.1.0-rc.4", | ||
"version": "1.1.0-rc.5", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
115703
733