TypeScript uses a structural type system, so there's absolutely no difference between IFace1
and IFace2
. You would implement them like this:
class SomeClass implements IFace1, IFace2 {
name = 'foo';
}
As vcsjones mentioned, because there is no runtime type information, there's not a plausible way where this could work on a nominal basis.