The following code:
export type Partial2DPoint = { x: number } | { y: number }
export interface Partial3DPoint extends Partial2DPoint {
z: number
}
Fails with the following error:
An interface can only extend an object type or intersection of object types with statically known members.
Why is this happening?