Skip to content

Commit 447b956

Browse files
author
trik
committed
fix(cdk/overlay): remove Optional decorator in ConnectedOverlayPositionChange constructor
1 parent 69029b4 commit 447b956

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/cdk/overlay/position/connected-position.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
/** Horizontal dimension of a connection point on the perimeter of the origin or overlay element. */
10-
import {Optional} from '@angular/core';
1110
export type HorizontalConnectionPos = 'start' | 'center' | 'end';
1211

1312
/** Vertical dimension of a connection point on the perimeter of the origin or overlay element. */
@@ -92,7 +91,7 @@ export class ConnectedOverlayPositionChange {
9291
/** The position used as a result of this change. */
9392
public connectionPair: ConnectionPositionPair,
9493
/** @docs-private */
95-
@Optional() public scrollableViewProperties: ScrollingVisibility) {}
94+
public scrollableViewProperties: ScrollingVisibility) {}
9695
}
9796

9897
/**

tools/public_api_guard/cdk/overlay.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,17 @@ export class CloseScrollStrategy implements ScrollStrategy {
142142

143143
export { ComponentType }
144144

145-
// @public
145+
// @public (undocumented)
146146
export class ConnectedOverlayPositionChange {
147147
constructor(
148148
connectionPair: ConnectionPositionPair,
149149
scrollableViewProperties: ScrollingVisibility);
150150
connectionPair: ConnectionPositionPair;
151151
scrollableViewProperties: ScrollingVisibility;
152+
// (undocumented)
153+
static ɵfac: i0.ɵɵFactoryDeclaration<ConnectedOverlayPositionChange, [null, { optional: true; }]>;
154+
// (undocumented)
155+
static ɵprov: i0.ɵɵInjectableDeclaration<ConnectedOverlayPositionChange>;
152156
}
153157

154158
// @public
@@ -249,7 +253,7 @@ export class GlobalPositionStrategy implements PositionStrategy {
249253
width(value?: string): this;
250254
}
251255

252-
// @public
256+
// @public (undocumented)
253257
export type HorizontalConnectionPos = 'start' | 'center' | 'end';
254258

255259
// @public

0 commit comments

Comments
 (0)