@pumpkin-plugins/build API / types / generateTypes
Function: generateTypes()
generateTypes(
witDir,outDir):void
Defined in: tools/build/src/types.ts:16
Generates TypeScript declarations for the Pumpkin (and WASI) modules a plugin imports.
Parameters
witDir
string
The WIT to generate from.
outDir
string
Where to write the declarations.
Returns
void
Throws
If jco is not installed or cannot generate declarations from the WIT.