-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete types #19
Comments
for 2 see microsoft/TypeScript#8305 (comment) |
for @webreflection/signal I ended up ditching automatic TS types creation and wrote it manually ... would you say that is better than types provided in here? Maybe I should just share the same file and add changes manually for the async export ... thoughts? |
Manual vs generated types usually depends on:
For me as a lib consumer I care only about DX, so as long as types are in-sync with the docs and the usage I should not care. |
there's nothing to type-check internally, as Right now the automatic type export is ugly and requires patches too via bash which is extra ugly so it's clear it doesn't serve me well for this JS project. I will update types soon but so far thanks for the PR, I might wait to have types updated before publishing again this module, if that makes sense. |
Thanks! |
Uhm ... actually the |
I think JSDoc always takes precedence over inferred JS types, so not sure what you mean... got any examples? |
current types are generated through JSDoc and yet the generator infers extra stuff it shouldn't which bothers me ... as I don't know how to tell TS via JSDoc to ignore or don't export/infer stuff from JS. |
BTW, when you say |
Could you point me to a git branch and the type you want to fix? I'll have a look if I can fix it
This was fixed in #20. Without it when you add |
the gotcha with If I add manually the JSDoc in signal for something not reflected in the code, it doesn't work ... or at least I couldn't make it work. |
Why do we need to hide that |
because of the augmented methods shared with computed Reactive doesn't need nor have ... Reactive is an abstract, not a usable class. |
#23 ugly, but if you don't want to say that it returns That's kinda sus tho, like a red flag that something is wrong imo |
point 3 is invalid/unfixable i think because (a)sync exports depend on platform and TS cannot do that |
.peek
onsignal()
resultusignal/*
typeseffect
signatures do not reflect sync/async/core variantsThe text was updated successfully, but these errors were encountered: