Skip to content

Commit 58dbc11

Browse files
committed
refactor(cdk/drag-drop): set generic for the CDK_DROP_LIST_GROUP token
cleanup related to angular/angular/pull/47461
1 parent df3a2e6 commit 58dbc11

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

goldens/cdk/drag-drop/index.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const CDK_DRAG_PREVIEW: InjectionToken<CdkDragPreview<any>>;
4141
export const CDK_DROP_LIST: InjectionToken<CdkDropList<any>>;
4242

4343
// @public
44-
export const CDK_DROP_LIST_GROUP: InjectionToken<CdkDropListGroup<unknown>>;
44+
export const CDK_DROP_LIST_GROUP: InjectionToken<CdkDropListGroup<CdkDropList<any>>>;
4545

4646
// @public
4747
export class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDestroy {

src/cdk/drag-drop/directives/drop-list-group.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {Directive, OnDestroy, Input, InjectionToken, booleanAttribute} from '@angular/core';
9+
import {Directive, InjectionToken, Input, OnDestroy, booleanAttribute} from '@angular/core';
10+
import type {CdkDropList} from './drop-list';
1011

1112
/**
1213
* Injection token that can be used to reference instances of `CdkDropListGroup`. It serves as
1314
* alternative token to the actual `CdkDropListGroup` class which could cause unnecessary
1415
* retention of the class and its directive metadata.
1516
*/
16-
export const CDK_DROP_LIST_GROUP = new InjectionToken<CdkDropListGroup<unknown>>(
17+
export const CDK_DROP_LIST_GROUP = new InjectionToken<CdkDropListGroup<CdkDropList>>(
1718
'CdkDropListGroup',
1819
);
1920

0 commit comments

Comments
 (0)