TC39 proposal-signals API?
Closed this issue · 3 comments
https://github.com/tc39/proposal-signals?tab=readme-ov-file#example---a-signals-counter
signal() -> State()
computed() -> Computed()
Folks can import * as Signal from 'alien-signals' as they wish
Alternatively, do as you wish; perhaps someone can release a codemod to transliterate later.
Maybe a paragraph can be added to the docs about the differences.
alien-signals only cares about the algorithm but not the API design. I am abstracting the core algorithm in the refactoring of 1.0, which can be used to construct a surface API that complies with the TC39 proposal.
Actually I have sent a PoC PR: proposal-signals/signal-polyfill#44
That's a better idea than mine tc39/proposal-signals#247 (comment)
Closed due to my work in proposal-signals/signal-polyfill#44 has been done. :)