Typescript Check If Object Meets Interface