You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

useMergeStateFromProps.d.ts 327 B

3 年之前
1234
  1. import { MergeStateSetter } from './useMergeState';
  2. declare type Mapper<TProps, TState> = (props: TProps, state: TState) => null | Partial<TState>;
  3. export default function useMergeStateFromProps<TProps, TState>(props: TProps, gDSFP: Mapper<TProps, TState>, initialState: TState): [TState, MergeStateSetter<TState>];
  4. export {};