Typescript - Tips & Tricks - Non-null assertion operator
In some cases, you have a field that you initialize in a method, and if you follow the flow of the code you are sure that this field is initialized but typescript doesn't understand it.
An example
type Person = {
name: string;
};
let person: Perso...
blog.delpuppo.net1 min read