interface Dog { breed: string; } const dog = {} as Dog; console.log(dog.breed);
I've collected more quirks of `as` in this playground: https://www.typescriptlang.org/play/index.html#code/PTAEAMEs...