We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Omit seems to not work as I'd expect it to, if I do an Omit<Foo, 'foo'> the result is not just that the 'foo' property is omitted from the Foo type.
Omit<Foo, 'foo'>
'foo'
Foo
Reproduces in v5.0.4, not sure about the rest.
Playground link with relevant code
type Callback = () => void; type Debounced = Callback & { cancel: Callback, flush: Callback }; type DebouncedNoFlush = Omit<Debounced, 'flush'>;
DebouncedNoFlush is no longer a function for some reason.
DebouncedNoFlush
DebouncedNoFlush should still be a function.
The text was updated successfully, but these errors were encountered:
See discussion in #53169
Sorry, something went wrong.
Nice, I didn't search for "homomorphic" unfortunately 😅
No branches or pull requests
Bug Report
Omit seems to not work as I'd expect it to, if I do an
Omit<Foo, 'foo'>
the result is not just that the'foo'
property is omitted from theFoo
type.🔎 Search Terms
🕗 Version & Regression Information
Reproduces in v5.0.4, not sure about the rest.
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
DebouncedNoFlush
is no longer a function for some reason.🙂 Expected behavior
DebouncedNoFlush
should still be a function.The text was updated successfully, but these errors were encountered: