mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The `RESPONSE_INIT` token previously used `ResponseInit`. However, `@types/node` (and `undici`) definitions for `ResponseInit` mark properties as `readonly`, which differs from the standard DOM `ResponseInit`.
This commit introduces a `ResponseInit` type that explicitly removes `readonly` modifiers to ensure compatibility and allow for mutable options. This type is now used by the `RESPONSE_INIT` token and is exported from `@angular/core`.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| application_config.ts | ||
| application_init.ts | ||
| application_module.ts | ||
| application_ngmodule_factory_compiler.ts | ||
| application_ref.ts | ||
| application_tokens.ts | ||
| create_application.ts | ||
| platform_tokens.ts | ||
| tracing.ts | ||