forked from codestates-seb/seb42_main_013
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react.d.ts
23 lines (19 loc) · 775 Bytes
/
react.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import "react-dom";
declare module "react-dom" {
function experimental_useFormState<State>(
action: (state: State) => Promise<State>,
initialState: State,
permalink?: string
): [state: State, dispatch: () => void];
// function experimental_useFormState<State, Payload>(
// action: (state: State, payload: Payload) => Promise<State>,
// initialState: State,
// permalink?: string
// ): [state: State, dispatch: (payload: Payload) => void];
function experimental_useFormState<State, Payload>(
action: (state: State, payload: Payload) => Promise<State>,
initialState: State,
permalink?: string
): [state: State, dispatch: (payload: Payload) => Promise<void>];
}
// https://github.com/vercel/next.js/issues/55919#issuecomment-1733807304