@pumpkin-plugins/static-hermes-runtime API / wit/facades / generateEsmFacade
Function: generateEsmFacade()
generateEsmFacade(
apiInterface,allInterfaces?):string
Defined in: wit/facades.ts:112
Generate the JavaScript facade for one resolved Pumpkin interface.
Parameters
apiInterface
Resolved Pumpkin interface imported by the plugin bundle.
allInterfaces?
readonly WitApiInterface[] = ...
Resolved interface closure used to include referenced resource wrappers.
Returns
string
JavaScript module source backed by the generated Pumpkin host adapter.