Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Non strict string literal types - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
7 replies
Fursum
Non strict string literal types
Hey everyone
. I want to keep intellisense suggestions when defining something like this
:
type
SuggestedStrings
=
"cat"
|
"dog"
|
string
;
type
SuggestedStrings
=
"cat"
|
"dog"
|
string
;
I want to be able to accept any other string but have suggestions when defining a variable
.
I am not sure what would be the right keyword to search for in this situation
.
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Zod, Non numeric string
TTC
Theo's Typesafe Cult / questions
2y ago
trpc types sharing non-monorepo project
TTC
Theo's Typesafe Cult / questions
10mo ago
Battling TypeScript Types
TTC
Theo's Typesafe Cult / questions
4y ago