Skip to content

Commit 6cbd352

Browse files
authored
fix: @hpcc-js/wasm does not include sub-package types (#344)
fixes #340 Signed-off-by: Gordon Smith <[email protected]>
1 parent c1191b2 commit 6cbd352

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

packages/wasm/src/index.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
1+
import type * as Base91Types from "./base91.js";
2+
import type * as DuckDBTypes from "./duckdb.js";
3+
import type * as ExpatTypes from "./expat.js";
4+
import type * as GraphvizTypes from "./graphviz.js";
5+
import type * as ZstdTypes from "./zstd.js";
6+
17
export namespace Base91 {
2-
export function load() {
8+
export function load(): Promise<Base91Types.Base91> {
39
return import("./base91.js").then(mod => mod.Base91.load());
410
}
511
}
612
export namespace DuckDB {
7-
export function load() {
13+
export function load(): Promise<DuckDBTypes.DuckDB> {
814
return import("./duckdb.js").then(mod => mod.DuckDB.load());
915
}
1016
}
1117
export namespace Expat {
12-
export function load() {
18+
export function load(): Promise<ExpatTypes.Expat> {
1319
return import("./expat.js").then(mod => mod.Expat.load());
1420
}
1521
}
1622
export namespace Graphviz {
17-
export function load() {
23+
export function load(): Promise<GraphvizTypes.Graphviz> {
1824
return import("./graphviz.js").then(mod => mod.Graphviz.load());
1925
}
2026
}
2127
export namespace Zstd {
22-
export function load() {
28+
export function load(): Promise<ZstdTypes.Zstd> {
2329
return import("./zstd.js").then(mod => mod.Zstd.load());
2430
}
2531
}

0 commit comments

Comments
 (0)