UNPKG

247 BTypeScriptView Raw
1import { KeyOf } from './types';
2declare type KeySetter<S, K extends keyof S> = (nextVal: S[K]) => void;
3export declare function useTangledState<S>(key: KeyOf<S>, defaultV: S[KeyOf<S>]): [Readonly<S[KeyOf<S>]>, KeySetter<S, KeyOf<S>>];
4export {};