@angular/ssr 18.2.19 → 18.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +3 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ApplicationRef } from '@angular/core';
2
+ import { BootstrapContext } from '@angular/platform-browser';
2
3
  import { StaticProvider } from '@angular/core';
3
4
  import { Type } from '@angular/core';
4
5
 
@@ -25,7 +26,7 @@ export declare class CommonEngine {
25
26
 
26
27
  export declare interface CommonEngineOptions {
27
28
  /** A method that when invoked returns a promise that returns an `ApplicationRef` instance once resolved or an NgModule. */
28
- bootstrap?: Type<{}> | (() => Promise<ApplicationRef>);
29
+ bootstrap?: Type<{}> | ((context: BootstrapContext) => Promise<ApplicationRef>);
29
30
  /** A set of platform level providers for all requests. */
30
31
  providers?: StaticProvider[];
31
32
  /** Enable request performance profiling data collection and printing the results in the server console. */
@@ -34,7 +35,7 @@ export declare interface CommonEngineOptions {
34
35
 
35
36
  export declare interface CommonEngineRenderOptions {
36
37
  /** A method that when invoked returns a promise that returns an `ApplicationRef` instance once resolved or an NgModule. */
37
- bootstrap?: Type<{}> | (() => Promise<ApplicationRef>);
38
+ bootstrap?: Type<{}> | ((context: BootstrapContext) => Promise<ApplicationRef>);
38
39
  /** A set of platform level providers for the current request. */
39
40
  providers?: StaticProvider[];
40
41
  url?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/ssr",
3
- "version": "18.2.19",
3
+ "version": "18.2.21",
4
4
  "description": "Angular server side rendering utilities",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/angular/angular-cli",