Created
May 16, 2025 15:19
-
-
Save zzzarius/39a87ec86f099f2ff5b3f7db47509332 to your computer and use it in GitHub Desktop.
Typescript autocomplete
This file contains hidden or 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
type MyStrings = | |
| 'One' | |
| 'Two' | |
| (string & {}); | |
const mystring: MyStrings = "this will not error and autocomplete will still work"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment