Web / Typescript interview questions
What is the Difference Between '!:' and '?:' in TypeScript object definitions?
The ? marks the property optional.
The ! is the definite assignment assertion. It's sort of a declaration-level version of the non-null assertion operator but used on a property (can also be used on variables) rather than on an expression.
More Related questions...