Skip to content

Commit f0c4730

Browse files
committed
Add new componentize signature to type defintions
1 parent 3213f2f commit f0c4730

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

types.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,21 @@ interface ComponentizeOptions {
6868
runtimeArgs?: string,
6969
}
7070

71+
/**
72+
* Componentize a JavaScript module to a WebAssembly component
73+
*
74+
* @param opts Componentize options
75+
*/
76+
export function componentize(opts: ComponentizeOptions): Promise<ComponentizeOutput>
77+
7178
/**
7279
* @deprecated Use `componentize(opts)` instead
7380
*
7481
* @param source Source code of JavaScript module to componentize
7582
* @param opts Componentize options
7683
*/
7784
export function componentize(source: string, opts: ComponentizeOptions): Promise<ComponentizeOutput>
85+
7886
/**
7987
* @deprecated Use `componentize(opts)` instead
8088
*

0 commit comments

Comments
 (0)