-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9a5484
commit cd1a619
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Literal String | ||
|
||
In TypeScript, a literal string is a string that has a specific value. For example, the string `"hello"` is a literal string with the value `hello`. | ||
In TypeScript, a literal string is a string that has a specific value. For example, the string `"hello"` is a literal string with the value `hello`. | ||
|
||
## Prerequisites | ||
- [Literal types are SO USEFUL in TS - Advanced TypeScript](https://www.youtube.com/watch?v=jxSh-RZTCws) by [Matt Pocock](https://x.com/mattpocockuk) | ||
- [Literal Type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters