I'm probably over thinking this. Basically, I would like to have an non-generic interface that implements a few properties, then create a second type that implements that interface with it's own generic property.
interface Car {
model: string;
}
interface Car<T> extends Car {
transmission: T;
}
TypeScript errors:
"All declarations of 'Car' must have identical type parameters."
The only way I can find is to name the non-generic interface something different, like CarBase. Suggestions?
interface Car<T> { model: string; transmission: T }