Fursum
Fursum
TTCTheo's Typesafe Cult
Created by Fursum on 4/30/2023 in #questions
How do I coerce this function to accept multiple types then conditionally change the output?
9 replies
TTCTheo's Typesafe Cult
Created by Fursum on 3/8/2023 in #questions
Good way to handle redirect on unauthorized request response
4 replies
TTCTheo's Typesafe Cult
Created by Fursum on 1/2/2023 in #questions
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.
8 replies