Skip to content

@pumpkin-plugins/wasi-capabilities API / capabilitiesForInterface

Function: capabilitiesForInterface() ​

capabilitiesForInterface(interfacePath): ("http" | "filesystem" | "sockets" | "udp")[]

Defined in: index.ts:48

Returns every capability that imports an interface, including shared support interfaces.

Parameters ​

interfacePath ​

string

Exact package/interface path, without the wasi: prefix or version.

Returns ​

("http" | "filesystem" | "sockets" | "udp")[]

Matching names in declaration order; an empty array for unknown paths. Only a single match is unambiguous.

pumpkin-plugins documentation