Typescript Check If Instanceof Interface