preactjs / signals

Manage state with style in every framework
https://preactjs.com/blog/introducing-signals/
MIT License
3.81k stars 95 forks source link

Feature request: explicit React typings #324

Open XantreDev opened 1 year ago

XantreDev commented 1 year ago

I think that explicit addition of signals typings (like in ts-reset ) will have better DX. For now typings not working for react. I can add this image All dom attributes can be preact signals, but by typings not. image image I think i can fix it by redeclaring React interfaces

JoviDeCroock commented 1 year ago

This should be solved by https://github.com/preactjs/signals/commit/0135d60b6de1325ee2b027a25cd60cc379f9c198

XantreDev commented 1 year ago

But it still will fall typechecks in html attributes and so on

XantreDev commented 1 year ago
image

I know how to solve it