1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 20:21:50 +02:00

chore: add resource under typescript:typescript-types:type-assertions:as-type

This commit is contained in:
roadmap bot
2023-06-13 11:35:46 +01:00
parent 226e94857b
commit 38106a8199

View File

@@ -12,3 +12,5 @@ let str = num as string;
``` ```
It's important to note that type assertions do not change the runtime type of a value, and do not cause any type of conversion. They simply provide a way for the programmer to override the type inference performed by the compiler. It's important to note that type assertions do not change the runtime type of a value, and do not cause any type of conversion. They simply provide a way for the programmer to override the type inference performed by the compiler.
- [Type assertions](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions)