Skip to content

Commit 70e8c5a

Browse files
authored
Merge pull request #1 from szhabolcs/patch-1
Update TypeScript.md typo
2 parents 31cedd7 + 800464d commit 70e8c5a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

TypeScript.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ In the above example, the `address` property of `person` is optional. By using t
219219

220220
## Non-null Assertion Operator
221221

222-
TypeScript provides the non-null assertion operator (`!`) to tell the compiler that a value will not be null or undefined at runtime, even if the type declaration allows it. It asserts that the value is non-null and non-undefined
223-
224-
, allowing you to access properties or call methods without a compiler error.
222+
TypeScript provides the non-null assertion operator (`!`) to tell the compiler that a value will not be null or undefined at runtime, even if the type declaration allows it. It asserts that the value is non-null and non-undefined, allowing you to access properties or call methods without a compiler error.
225223

226224
```typescript
227225
const element = document.getElementById("myElement")!;

0 commit comments

Comments
 (0)