File tree Expand file tree Collapse file tree 4 files changed +7
-11
lines changed Expand file tree Collapse file tree 4 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import getScrollBarSize from 'rc-util/lib/getScrollBarSize';
4
4
import KeyCode from 'rc-util/lib/KeyCode' ;
5
5
import omit from 'rc-util/lib/omit' ;
6
6
7
- import { IDrawerChildProps } from './IDrawerPropTypes' ;
7
+ import type { IDrawerChildProps } from './IDrawerPropTypes' ;
8
8
9
9
import {
10
10
addEventListener ,
@@ -18,9 +18,7 @@ import {
18
18
windowIsUndefined ,
19
19
} from './utils' ;
20
20
21
- const currentDrawer : {
22
- [ key : string ] : boolean ;
23
- } = { } ;
21
+ const currentDrawer : Record < string , boolean > = { } ;
24
22
25
23
interface IState {
26
24
_self : DrawerChild ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Portal from 'rc-util/lib/PortalWrapper';
2
2
import * as React from 'react' ;
3
3
4
4
import Child from './DrawerChild' ;
5
- import { IDrawerProps , IDrawerChildProps } from './IDrawerPropTypes' ;
5
+ import type { IDrawerProps , IDrawerChildProps } from './IDrawerPropTypes' ;
6
6
7
7
interface IState {
8
8
open : boolean ;
Original file line number Diff line number Diff line change 2
2
// Project: https://github.com/react-component/drawer
3
3
// Definitions by: jljsj33 <https://github.com/jljsj33>
4
4
// Definitions: https://github.com/react-component/drawer
5
- import { GetContainer } from 'rc-util/lib/PortalWrapper' ;
6
- import * as React from 'react' ;
7
- import ScrollLocker from 'rc-util/lib/Dom/scrollLocker' ;
5
+ import type { GetContainer } from 'rc-util/lib/PortalWrapper' ;
6
+ import type * as React from 'react' ;
7
+ import type ScrollLocker from 'rc-util/lib/Dom/scrollLocker' ;
8
8
9
9
export type IPlacement = 'left' | 'top' | 'right' | 'bottom' ;
10
10
Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ export function dataToArray(vars: any) {
4
4
}
5
5
return [ vars ] ;
6
6
}
7
- const transitionEndObject : {
8
- [ key : string ] : string ;
9
- } = {
7
+ const transitionEndObject : Record < string , string > = {
10
8
transition : 'transitionend' ,
11
9
WebkitTransition : 'webkitTransitionEnd' ,
12
10
MozTransition : 'transitionend' ,
You can’t perform that action at this time.
0 commit comments