GoScrobble/web/node_modules/@restart/hooks/cjs/useMergeStateFromProps.d.ts

5 lines
327 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import { MergeStateSetter } from './useMergeState';
declare type Mapper<TProps, TState> = (props: TProps, state: TState) => null | Partial<TState>;
export default function useMergeStateFromProps<TProps, TState>(props: TProps, gDSFP: Mapper<TProps, TState>, initialState: TState): [TState, MergeStateSetter<TState>];
export {};