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:
@@ -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.
|
||||
|
||||
- [Type assertions](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions)
|
Reference in New Issue
Block a user