Infer type when object coerced to string if toString explicitly defined #35945
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Search Terms
coercion toString computed properties
Suggestion
Infer type when object coerced to string if
toString
explicitly definedExamples
Would be nice if the following would be allowed
Playground
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: