Skip to content

Commit 75ca71a

Browse files
committed
Merge pull request DefinitelyTyped#5781 from stepancar/patch-5
force update fix
2 parents c834d1e + ed8c24d commit 75ca71a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react/react.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ declare namespace __React {
135135
constructor(props?: P, context?: any);
136136
setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
137137
setState(state: S, callback?: () => any): void;
138-
forceUpdate(): void;
138+
forceUpdate(callBack?: () => any): void;
139139
render(): JSX.Element;
140140
props: P;
141141
state: S;
@@ -932,7 +932,7 @@ declare module "react/addons" {
932932
constructor(props?: P, context?: any);
933933
setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
934934
setState(state: S, callback?: () => any): void;
935-
forceUpdate(): void;
935+
forceUpdate(callBack?: () => any): void;
936936
render(): JSX.Element;
937937
props: P;
938938
state: S;

0 commit comments

Comments
 (0)