Skip to content

Commit 47971ad

Browse files
committed
fix: workaround type problem for now
1 parent bd9994b commit 47971ad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/common-engine.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
import { CommonEngine } from '@angular/ssr/node'
1+
// import { CommonEngine } from '@angular/ssr/node'
22

3-
export declare function render(commonEngine: CommonEngine): Promise<Response>
3+
// ideally figure out how to use the real CommonEngine type from the Angular package
4+
// as currently it causes following error (due to repo setup?)
5+
// ✘ [ERROR] TS2345: Argument of type 'import("/Users/misiek/dev/angular-runtime/tests/fixtures/angular-19-common-engine/node_modules/@angular/ssr/node/index").CommonEngine' is not assignable to parameter of type 'import("/Users/misiek/dev/angular-runtime/node_modules/@angular/ssr/node/index").CommonEngine'.
6+
// Types have separate declarations of a private property 'options'. [plugin angular-compiler]
7+
export declare function render(commonEngine: any): Promise<Response>

0 commit comments

Comments
 (0)