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
O.Invert doesn't work for interfaces (just for types)
type O_INVERT = { A: 'Av'; }; type INVERT_O = { Av: 'A'; }; interface O_INVERT1 { A: 'Av'; } interface INVERT1_O { Av: 'A'; } checks([ check<O.Invert<O_INVERT>, INVERT_O, Test.Pass>(), // PASSES check<O.Invert<O_INVERT1>, INVERT1_O, Test.Pass>(), // FAILS ])
Both tests in the example should pass
The reason for this issue is explained here:
Object types have an implicit index signature, but interfaces don't (for safety reasons), so they don't extend an index type.
The text was updated successfully, but these errors were encountered:
Fix millsp#208 - O.Invert doesn't work for interfaces (just for types)
04848f5
7310321
9d9945e
Merge branch '#208' of https://github.com/regevbr/ts-toolbelt into re…
dd1a3fa
…gevbr-#208
c582e7a
No branches or pull requests
🐞 Bug Report
Describe the bug
O.Invert doesn't work for interfaces (just for types)
Reproduce the bug
Expected behavior
Both tests in the example should pass
Additional context
The reason for this issue is explained here:
The text was updated successfully, but these errors were encountered: