Skip to content

Commit 76ba5e9

Browse files
fix(pay-card): declare the webp module for the card flow typecheck
The auth leaf now imports a `*.webp` hero. `@features/flow-pay-card` compiles that source across the package boundary, and an ambient declaration does not cross a workspace boundary, so `tsc` could not resolve the import. Re-declare the module in this package, as it already does for `*.svg`. Both apps carry their own declaration, so only this flow package was exposed.
1 parent ef1c5d7 commit 76ba5e9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

features/flow/pay-card/src/assets.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ declare module "*.svg" {
66
const src: string;
77
export default src;
88
}
9+
10+
// The auth leaf imports its `*.webp` hero the same way, and this package compiles that source
11+
// across the package boundary too — mirroring `features/flow/pay-card-auth/src/assets.d.ts`.
12+
declare module "*.webp" {
13+
const src: string;
14+
export default src;
15+
}

0 commit comments

Comments
 (0)