Closed
Description
It would be very nice have real extensible row polymorphism in Typescript, that also works with generics.
So having type constructions that allow adding and removing 'keys' aka labels.
I tried adding labels using interfaces, but that does not work, since you cannot extend from a generic type?
interface IWithName<T> extends T {
name: string
}
See Microsoft's research language Koka and also this old paper, both from Daan Leijen