@pumpkin-plugins/static-hermes-runtime API / wit/resolver / resolveWasiImports
Function: resolveWasiImports()
resolveWasiImports(
resolved,requestedImports?,importOrder?):object
Defined in: wit/resolver.ts:173
Select the directly imported WASI interfaces and their transitive dependencies.
Parameters
resolved
Normalized package graph containing the plugin world.
requestedImports?
string[]
Optional direct imports to include; omitted selects every WASI import.
importOrder?
readonly string[]
Optional source import order used to keep output deterministic.
Returns
object
Direct imports and the interface closure required by their dependencies.
imports
imports:
string[]
interfaces
interfaces:
WitWasiInterface[]
Throws
If a requested interface is absent from the plugin world.