Skip to content

Commit

Permalink
fix(drag-drop): expose Point interface (#19051)
Browse files Browse the repository at this point in the history
The `Point` interface is part of some public APIs, but wasn't being exported.

Fixes #19001.
  • Loading branch information
crisbeto committed Apr 20, 2020
1 parent 80aeaf3 commit 4431442
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/drag-drop/public-api.ts
Expand Up @@ -7,7 +7,7 @@
*/

export {DragDrop} from './drag-drop';
export {DragRef, DragRefConfig} from './drag-ref';
export {DragRef, DragRefConfig, Point} from './drag-ref';
export {DropListRef} from './drop-list-ref';

export * from './drag-events';
Expand Down
5 changes: 5 additions & 0 deletions tools/public_api_guard/cdk/drag-drop.d.ts
Expand Up @@ -390,4 +390,9 @@ export declare class DropListRef<T = any> {

export declare function moveItemInArray<T = any>(array: T[], fromIndex: number, toIndex: number): void;

export interface Point {
x: number;
y: number;
}

export declare function transferArrayItem<T = any>(currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;

0 comments on commit 4431442

Please sign in to comment.