Skip to content

Commit ef3231e

Browse files
committed
types: update type definitions
1 parent 4eb66a7 commit ef3231e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

types.d.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,20 @@ interface ComponentizeOptions {
2222
/**
2323
* Disable WASI features in the base engine
2424
* Disabling all features results in a pure component with no WASI dependence
25+
*
26+
* - stdio: console.log(), console.error and errors are provided to stderr
27+
* - random: Math.random() and crypto.randomBytes()
28+
* - clocks: Date.now()
29+
*
2530
*/
2631
disableFeatures?: ('stdio' | 'random' | 'clocks')[],
32+
/**
33+
* Enable WASI features in the base engine
34+
*
35+
* - http: fetch() API
36+
*
37+
*/
38+
enableFeatures?: ('http')[],
2739
}
2840

2941
/**
@@ -45,7 +57,7 @@ interface ComponentizeOutput {
4557
*/
4658
component: Uint8Array,
4759
/**
48-
* Available component world imports to the componentized JavaScript (whether used or not)
60+
* Used guest imports in JavaScript (excluding those from StarlingMonkey engine)
4961
*/
5062
imports: [[string, string]][]
5163
}

0 commit comments

Comments
 (0)