Comments (3)
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?
from componentizejs.
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.
from componentizejs.
Thanks for calling this out, added an update in #98.
from componentizejs.
Related Issues (20)
- Support for targeting multiple worlds HOT 14
- Document `witPath` option HOT 1
- Create a componentize-js CLI experience HOT 3
- Document how imports work HOT 4
- Question - Should componentize-js tree shake unused imports? HOT 6
- Question - Can we optionally enable `cli` and `fs` worlds. HOT 3
- fetch globals are not available HOT 2
- Reference packages to import HOT 2
- Question: Using custom build of starlingmonkey HOT 7
- Async export support HOT 4
- `componentize` should throw an error when it it builds a component without satisfying world exports. HOT 1
- Optionally allow using `fetchEvent` to handle `wasi:http/[email protected]#handle` HOT 1
- Repeated calls to an instance start failing HOT 9
- enums not exported? HOT 3
- Document how imports work & avoid printing invalid JS in the error message HOT 1
- Avoid process.exit HOT 4
- Add a fetch example?
- Using `fetch` traps HOT 6
- Use of `wasi-http` fails to fully finish writing the body HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from componentizejs.