May 16, 2025
Typescript autocomplete
autocomplete.tsTypeScript
type MyStrings =
| 'One'
| 'Two'
| (string & {});
const mystring: MyStrings = "this will not error and autocomplete will still work";type MyStrings =
| 'One'
| 'Two'
| (string & {});
const mystring: MyStrings = "this will not error and autocomplete will still work";