Skip to content

Commit 6aa13cc

Browse files
Marzooqaclaude
andcommitted
fix(sdk-lib-mpc): add type shim for @bitgo/wasm-mps/web subpath
moduleResolution:node cannot resolve package.json subpath exports. Adds an ambient module declaration so TypeScript accepts the @bitgo/wasm-mps/web import that webpack resolves via its alias. Ticket: WCI-251 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent f4c386f commit 6aa13cc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Type shim for @bitgo/wasm-mps/web subpath export.
2+
// moduleResolution:node cannot resolve package.json subpath exports;
3+
// this declaration bridges the gap until the project upgrades to node16/bundler.
4+
import type * as WasmMpsMain from '@bitgo/wasm-mps';
5+
6+
declare module '@bitgo/wasm-mps/web' {
7+
export * from '@bitgo/wasm-mps';
8+
const init: () => Promise<void>;
9+
export default init;
10+
}

0 commit comments

Comments
 (0)