Hey I sat down with @Wassim Chegham today to ask him some questions about how TypeScript, and some of the mappings we were doing. And it seems there might be some differences between what our TypeScript type generator is generating - and the code we actually want to be writing.
I think what we walked away from was with some questions. To speak for myself, I'm wondering:
I think one thing we probably want to do is write down the mapping we perform from WIT -> TypeScript in our docs. But separately from that we should evaluate how we want to proceed here in the short term.
(No need to answer this now; it's more to make sure I've raised this ahead of Monday's meeting; that way we get to perhaps think about this a little)
also, I would like to know:
(we can chat about this during our next call)
The current TS bindgen for the preview2-shim project is just the same bindgen as if WASI was implemented as a component itself. But WASI isn't implemented as a single component - instead we split its implementation across multiple modules for each subsystem. Therefore there is a difference between what we generate and the actual package type of the preview2-shim project. Bridging that difference with a wrapper TS file to reexport the right types would be great to see!
Last updated: Nov 22 2024 at 17:03 UTC