-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
UnactionableThere isn't something we can do with this issueThere isn't something we can do with this issue
Description
Type checking, and type definitions errors could me made significantly easier to debug by boiling down the type definitions to something realistic.
- This first example shows the kind of errors I run into in actual development. It's totally unreadable.
- This second example shows the same effect
For this second example, it would be a lot more useful if instead it just showed what the type realistically is, and what it was missing. Ie:
Property "badProp" does not exist on type `{
requestId: string;
type: string;
id?: string;
createdAt?: Date;
data?: string;
}`
This could be a configuration thing, but I can't imagine any reason why a person would want cryptic error messages by default.
AnyhowStep, vadimshvetsov, willtonkin, andreyantipov, carljohnson93 and 1 more
Metadata
Metadata
Assignees
Labels
UnactionableThere isn't something we can do with this issueThere isn't something we can do with this issue