Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/single-spa-angular/src/single-spa-angular.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ApplicationRef, NgModuleRef, NgZone } from '@angular/core';
import { ɵisPromise, type ApplicationRef, type NgModuleRef, type NgZone } from '@angular/core';
import type { LifeCycles } from 'single-spa';
import { getContainerElementAndSetTemplate } from 'single-spa-angular/internals';

Expand Down Expand Up @@ -99,7 +99,7 @@ async function mount(

const bootstrapPromise = options.bootstrapFunction(props);

if (!(bootstrapPromise instanceof Promise)) {
if (!ɵisPromise(bootstrapPromise)) {
throw Error(
`single-spa-angular: the options.bootstrapFunction must return a promise, but instead returned a '${typeof bootstrapPromise}' that is not a Promise`,
);
Expand Down
Loading