We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeScript Version: 3.9.2
Search Terms: 3.9.2 Omit
Code
interface A { my: 'aaa'; } interface B { my: 'bbb'; } interface C extends Omit<A & B, 'my'> { my: string; }
Expected behavior:
Can define my with Omited like prev version.
my
Actual behavior:
Property 'my' of type 'string' is not assignable to string index type 'never'.(2411)
Playground Link:
https://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=12&pc=1#code/JYOwLgpgTgZghgYwgAgILIN7ILAChnIC2AngFzIDkc1FA3HgL556iSyIoBCmO+RZlAEbC6jZrlbR4SZAGFkEAB6QQAEwDOyAPKFgYADzoAZMk4AaSiQoA+HngIly6sFFABzeria4gA
Related Issues:
TypeScript Version:
3.9.2
Search Terms:
3.9.2 Omit
Code
Expected behavior:
Can define
mywith Omited like prev version.Actual behavior:
Playground Link:
https://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=12&pc=1#code/JYOwLgpgTgZghgYwgAgILIN7ILAChnIC2AngFzIDkc1FA3HgL556iSyIoBCmO+RZlAEbC6jZrlbR4SZAGFkEAB6QQAEwDOyAPKFgYADzoAZMk4AaSiQoA+HngIly6sFFABzeria4gA
Related Issues: