Skip to content

Commit

Permalink
fix: Fix message for Type#getDefaultOrThrow()
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Oct 2, 2019
1 parent 79d9f8a commit ed1ced7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/types/Type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class Type<TType extends ts.Type = ts.Type> {
* Gets the default type or throws if it doesn't exist.
*/
getDefaultOrThrow() {
return errors.throwIfNullOrUndefined(this.getDefault(), "Expected to find a constraint.");
return errors.throwIfNullOrUndefined(this.getDefault(), "Expected to find a default type.");
}

/**
Expand Down

0 comments on commit ed1ced7

Please sign in to comment.