This will get a TypeScript error. import NonExistentClass from 'non-existent-class'; const x = new Object(); x.nonExistentMethod(); EOM