findOne.ts 238 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 import { User } from "./models/User"; User.findOne({ where: { firstName: 'John' }}); // The below line should be an error if uncommented, thanks to the new // TAttributes-based typechecking // User.findOne({ where: { blah: 'blah2' }});