Closed whitequark closed 7 months ago
All three are correct believe it or not, thanks to the magic of JavaScript. Signatures are:
function componentize(source: string, opts: ComponentizeOptions)
function componentize(source: string, witWorld: string, opts: ComponentizeOptions)
function componentize(source: string, witWorld: string)
We should certainly add a TypeScript type at some point if it would be useful.
Yes enableStdout
was replaced with disableFeatures: ['stdio']
is it still referenced somewhere?
All three are correct believe it or not, thanks to the magic of JavaScript.
I think the complete signature or signatures should be referenced at least somewhere.
We should certainly add a TypeScript type at some point if it would be useful.
Yeah, I use TypeScript.
Yes
enableStdout
was replaced withdisableFeatures: ['stdio']
is it still referenced somewhere?
In the Usage section, yes.
Thanks for calling this out, added an update in https://github.com/bytecodealliance/ComponentizeJS/pull/98.
In the Usage section,
componentize
is a 3-argument function.In the API section,
componentize
is a 2-argument function.In the example,
componentize
is a 2-argument function but the types are different from the previous case.Also it looks like
enableStdout
might no longer exist?