Skip to content

Commit f1daaa6

Browse files
committed
chore: Fix ts define
1 parent 836d24c commit f1daaa6

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/interface.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
AnimationType,
3-
TransitionNameType,
4-
MotionType,
5-
} from 'rc-trigger/lib/interface';
1+
import { TransitionNameType, MotionType } from 'rc-trigger/lib/interface';
62

73
export type RenderIconType =
84
| React.ReactNode
@@ -66,4 +62,4 @@ export type BuiltinPlacements = Record<string, any>;
6662
export type TriggerSubMenuAction = 'click' | 'hover';
6763

6864
// =================================== Motion ===================================
69-
export { AnimationType, TransitionNameType, MotionType };
65+
export { TransitionNameType, MotionType };

src/utils/legacyUtil.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import warning from 'rc-util/lib/warning';
2-
import { MotionType, AnimationType, TransitionNameType } from '../interface';
2+
import { MotionType, TransitionNameType, OpenAnimation } from '../interface';
33

44
interface GetMotionProps {
55
motion?: MotionType;
6-
openAnimation?: AnimationType;
6+
openAnimation?: OpenAnimation;
77
openTransitionName?: TransitionNameType;
88
prefixCls?: string;
99
}

0 commit comments

Comments
 (0)