-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
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.
Actual behavior:
Property 'my' of type 'string' is not assignable to string index type 'never'.(2411)
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug