I have the following interface A and need to create type that extends A, but overrides definition of property type
interface A {
type: 'user';
name: string;
}
type B = ???
let q: B = {
type: 'admin',
name: 'John'
}
How to do this?