Skip to content

Commit 282161c

Browse files
authored
fix(types): fixed TransitionCallbacks interface to reflect react-transition-group args (#962)
1 parent e7e0d0b commit 282161c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/types.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export interface TransitionCallbacks {
2-
onEnter?(node: HTMLElement): any;
3-
onEntered?(node: HTMLElement): any;
4-
onEntering?(node: HTMLElement): any;
2+
onEnter?(node: HTMLElement, isAppearing: boolean): any;
3+
onEntered?(node: HTMLElement, isAppearing: boolean): any;
4+
onEntering?(node: HTMLElement, isAppearing: boolean): any;
55
onExit?(node: HTMLElement): any;
66
onExited?(node: HTMLElement): any;
77
onExiting?(node: HTMLElement): any;

0 commit comments

Comments
 (0)