Typescript Check If Instanceof Interface Meaning