File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
src/cdk-experimental/drag-drop Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -10,35 +10,34 @@ import {CdkDrag} from './drag';
10
10
import { CdkDropContainer } from './drop-container' ;
11
11
12
12
/** Event emitted when the user starts dragging a draggable. */
13
- export interface CdkDragStart {
13
+ export interface CdkDragStart < T = any > {
14
14
/** Draggable that emitted the event. */
15
- source : CdkDrag ;
15
+ source : CdkDrag < T > ;
16
16
}
17
17
18
-
19
18
/** Event emitted when the user stops dragging a draggable. */
20
- export interface CdkDragEnd {
19
+ export interface CdkDragEnd < T = any > {
21
20
/** Draggable that emitted the event. */
22
- source : CdkDrag ;
21
+ source : CdkDrag < T > ;
23
22
}
24
23
25
24
/** Event emitted when the user moves an item into a new drop container. */
26
- export interface CdkDragEnter < T > {
25
+ export interface CdkDragEnter < T = any , I = T > {
27
26
/** Container into which the user has moved the item. */
28
27
container : CdkDropContainer < T > ;
29
28
/** Item that was removed from the container. */
30
- item : CdkDrag ;
29
+ item : CdkDrag < I > ;
31
30
}
32
31
33
32
/**
34
33
* Event emitted when the user removes an item from a
35
34
* drop container by moving it into another one.
36
35
*/
37
- export interface CdkDragExit < T > {
36
+ export interface CdkDragExit < T = any , I = T > {
38
37
/** Container from which the user has a removed an item. */
39
38
container : CdkDropContainer < T > ;
40
39
/** Item that was removed from the container. */
41
- item : CdkDrag ;
40
+ item : CdkDrag < I > ;
42
41
}
43
42
44
43
You can’t perform that action at this time.
0 commit comments