Understanding the exclamation mark in TypeScript - LogRocket...
Double exclamation marks in TypeScript What is the TypeScript exclamation mark? The non-null assertion operator tells the TypeScript compiler that a value typed as optional cannot be null or undefined. For exam