-
Notifications
You must be signed in to change notification settings - Fork 10
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
TS misunderstands types #31
Comments
Hey! This appears to be a duplicate of issues #28 and #30 - it's a known gap in the type inferring that's provided within this package, but I haven't been able to rewrite it in a way where TS is able to be more aware of what the value will be based on the order of events within the unlimited objects and recursion that's going on within the runtime code, which is why it can results in a union of all possible values (which will include What I would suggest is to declare your More context is available in issues #28 and #30 though, and PRs are always welcome if you'd like to try and improve the type inferring. |
Thanks. |
Hi
The issue is, TS shows me this error, for example,
fontWeightRegular
inconfig.presets?.fontWeightRegular
can beundefined
.It's expected that
fontWeightRegular
will always have a value. But TS doesn't know that.I want to merge the default options with the same options (with custom values) added by the user.
The text was updated successfully, but these errors were encountered: