useMergeStateFromProps.d.ts 327 Bytes
Newer Older
Sangjune Bae's avatar
Sangjune Bae committed
1
2
3
4
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 {};