Skip to content

Commit 3855730

Browse files
JeanMechethePunderWoman
authored andcommitted
refactor(core): remove TODOs referencing #24571 (#60648)
Fixing those todos are now mostly breaking changes. The situation is "good" as is. PR Close #60648
1 parent 8d41c5b commit 3855730

16 files changed

+0
-36
lines changed

packages/common/http/src/headers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export class HttpHeaders {
2323
/**
2424
* Internal map of lowercase header names to values.
2525
*/
26-
// TODO(issue/24571): remove '!'.
2726
private headers!: Map<string, string[]>;
2827

2928
/**

packages/common/http/src/request.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ export class HttpRequest<T> {
186186
* new HttpParams({fromString: 'angular=awesome'})
187187
* ```
188188
*/
189-
// TODO(issue/24571): remove '!'.
190189
readonly params!: HttpParams;
191190

192191
/**

packages/common/http/src/response.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ export abstract class HttpResponseBase {
183183
/**
184184
* Type of the response, narrowed to either the full response or the header.
185185
*/
186-
// TODO(issue/24571): remove '!'.
187186
readonly type!: HttpEventType.Response | HttpEventType.ResponseHeader;
188187

189188
/**

packages/common/http/test/jsonp_mock.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export class MockScriptElement {
2828
}
2929

3030
export class MockDocument {
31-
// TODO(issue/24571): remove '!'.
3231
mock!: MockScriptElement | null;
3332
readonly body: any = this;
3433

packages/common/http/test/xhr_mock.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {XhrFactory} from '@angular/common';
1010
import {HttpHeaders} from '@angular/common/http/src/headers';
1111

1212
export class MockXhrFactory implements XhrFactory {
13-
// TODO(issue/24571): remove '!'.
1413
mock!: MockXMLHttpRequest;
1514

1615
build(): XMLHttpRequest {
@@ -33,9 +32,7 @@ export class MockXMLHttpRequestUpload {
3332
export class MockXMLHttpRequest {
3433
// Set by method calls.
3534
body: any;
36-
// TODO(issue/24571): remove '!'.
3735
method!: string;
38-
// TODO(issue/24571): remove '!'.
3936
url!: string;
4037
mockHeaders: {[key: string]: string} = {};
4138
mockAborted: boolean = false;

packages/common/src/directives/ng_for_of.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ export class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCh
214214
private _ngForOf: U | undefined | null = null;
215215
private _ngForOfDirty: boolean = true;
216216
private _differ: IterableDiffer<T> | null = null;
217-
// TODO(issue/24571): remove '!'
218217
// waiting for microsoft/typescript#43662 to allow the return type `TrackByFunction|undefined` for
219218
// the getter
220219
private _trackByFn!: TrackByFunction<T>;

packages/examples/core/animation/ts/dsl/animation_example.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
4242
standalone: false,
4343
})
4444
export class MyExpandoCmp {
45-
// TODO(issue/24571): remove '!'.
4645
stateExpression!: string;
4746
constructor() {
4847
this.collapse();

packages/forms/src/directives/abstract_form_group_directive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export class AbstractFormGroupDirective extends ControlContainer implements OnIn
3030
*
3131
* @internal
3232
*/
33-
// TODO(issue/24571): remove '!'.
3433
_parent!: ControlContainer;
3534

3635
/** @nodoc */

packages/forms/src/directives/control_container.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export abstract class ControlContainer extends AbstractControlDirective {
2121
* @description
2222
* The name for the control
2323
*/
24-
// TODO(issue/24571): remove '!'.
2524
name!: string | number | null;
2625

2726
/**

packages/forms/src/directives/ng_form.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ export class NgForm extends ControlContainer implements Form, AfterViewInit {
160160
* Possible values: `'change'` | `'blur'` | `'submit'`.
161161
*
162162
*/
163-
// TODO(issue/24571): remove '!'.
164163
@Input('ngFormOptions') options!: {updateOn?: FormHooks};
165164

166165
constructor(

packages/forms/src/directives/ng_model.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ export class NgModel extends NgControl implements OnChanges, OnDestroy {
196196
* @description
197197
* Tracks whether the control is disabled.
198198
*/
199-
// TODO(issue/24571): remove '!'.
200199
@Input('disabled') isDisabled!: boolean;
201200

202201
/**
@@ -221,7 +220,6 @@ export class NgModel extends NgControl implements OnChanges, OnDestroy {
221220
* Defaults to 'change'. Possible values: `'change'` | `'blur'` | `'submit'`.
222221
*
223222
*/
224-
// TODO(issue/24571): remove '!'.
225223
@Input('ngModelOptions') options!: {name?: string; standalone?: boolean; updateOn?: FormHooks};
226224

227225
/**

packages/forms/src/directives/radio_control_value_accessor.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,10 @@ export class RadioControlValueAccessor
131131
implements ControlValueAccessor, OnDestroy, OnInit
132132
{
133133
/** @internal */
134-
// TODO(issue/24571): remove '!'.
135134
_state!: boolean;
136135
/** @internal */
137-
// TODO(issue/24571): remove '!'.
138136
_control!: NgControl;
139137
/** @internal */
140-
// TODO(issue/24571): remove '!'.
141138
_fn!: Function;
142139

143140
private setDisabledStateFired = false;
@@ -155,15 +152,13 @@ export class RadioControlValueAccessor
155152
* @description
156153
* Tracks the name of the radio input element.
157154
*/
158-
// TODO(issue/24571): remove '!'.
159155
@Input() name!: string;
160156

161157
/**
162158
* @description
163159
* Tracks the name of the `FormControl` bound to the directive. The name corresponds
164160
* to a key in the parent `FormGroup` or `FormArray`.
165161
*/
166-
// TODO(issue/24571): remove '!'.
167162
@Input() formControlName!: string;
168163

169164
/**

packages/forms/src/directives/reactive_directives/form_control_directive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ export class FormControlDirective extends NgControl implements OnChanges, OnDest
8888
* @description
8989
* Tracks the `FormControl` instance bound to the directive.
9090
*/
91-
// TODO(issue/24571): remove '!'.
9291
@Input('formControl') form!: FormControl;
9392

9493
/**

packages/forms/src/directives/reactive_directives/form_control_name.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export class FormControlName extends NgControl implements OnChanges, OnDestroy {
9696
* @description
9797
* Tracks the `FormControl` instance bound to the directive.
9898
*/
99-
// TODO(issue/24571): remove '!'.
10099
override readonly control!: FormControl;
101100

102101
/**

packages/forms/src/directives/select_control_value_accessor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ export class NgSelectOption implements OnDestroy {
198198
* @description
199199
* ID of the option element
200200
*/
201-
// TODO(issue/24571): remove '!'.
202201
id!: string;
203202

204203
constructor(

packages/forms/src/directives/select_multiple_control_value_accessor.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,6 @@ function _extractId(valueString: string): string {
4444
return valueString.split(':')[0];
4545
}
4646

47-
/** Mock interface for HTML Options */
48-
interface HTMLOption {
49-
value: string;
50-
selected: boolean;
51-
}
52-
53-
/** Mock interface for HTMLCollection */
54-
abstract class HTMLCollection {
55-
// TODO(issue/24571): remove '!'.
56-
length!: number;
57-
abstract item(_: number): HTMLOption;
58-
}
59-
6047
/**
6148
* @description
6249
* The `ControlValueAccessor` for writing multi-select control values and listening to multi-select
@@ -226,7 +213,6 @@ export class SelectMultipleControlValueAccessor
226213
standalone: false,
227214
})
228215
export class ɵNgSelectMultipleOption implements OnDestroy {
229-
// TODO(issue/24571): remove '!'.
230216
id!: string;
231217
/** @internal */
232218
_value: any;

0 commit comments

Comments
 (0)