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
lit-helpers spreadProps types #2705
Comments
It’s possible that a generic could help here, but there is a pretty vast (see the looseness of the internal type) amount of values to cover here. If you had a suggestion in the form of a PR, we’d be happy to discuss this more closely! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
When I use spreadPros like this:
it would expect it to throw no error
Actual Behavior
When I use spreadPros like this:
I get a TypeScript error
my Interface looks like this
I can work around this when i spread my object like this:
Additional context
if I change the type definition from
to
there is no error thrown, but i don't know if this is the right approach. Could also be related to this: microsoft/TypeScript#50087 (comment)
The text was updated successfully, but these errors were encountered: