Should getters still infer the same type from setters over their return expressions? #43414
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
Should the
get
type ofmyValue
bePromise<string>
or juststring | Promise<string>
? Right now it is the latter; but technically, the former provides a more specific type.Changing this technically would be a breaking change.
The text was updated successfully, but these errors were encountered: