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

File tree

16 files changed

+0
-36
lines changed

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(

0 commit comments

Comments
 (0)