grammars-v4
grammars-v4 copied to clipboard
TypeScript non-null assertion operator parse error
trafficstars
function processEntity(e?: Entity) {
validateEntity(e);
let s = e!.name; // Assert that e is non-null and access name
}
Ref: https://stackoverflow.com/questions/47704652/what-does-exclamation-point-after-variable-mean-in-javascript