chore: add resource under typescript:typescript-types:type-assertions:as-type
This commit is contained in:
1 parent
226e94857b
commit
38106a8199
1 file changed
+2
+2
@@ -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