After reviewing the documentation and this SO Question it looks like the behavior I am looking for is the following:
type A = {
a:string
};
type B = {
b:string
};
type C = A & B & {
c:string
};
My question is: Can the same behavior be done with interfaces in a single line?
Primary1andPrimary2are equivalent to each other andSecondaryis equivalent to just{prop: string}. You can extend multiple interfaces likeinterface Secondary extends Primary1, Primary2 { prop: string }, but I'm not sure if that actually meets whatever use case you have without a little more in the example.