Do not truncate error messages.
With false
, the default.
ts
// @errors: 2322 2454
var x: {
propertyWithAnExceedinglyLongName1: string;
propertyWithAnExceedinglyLongName2: string;
propertyWithAnExceedinglyLongName3: string;
propertyWithAnExceedinglyLongName4: string;
propertyWithAnExceedinglyLongName5: string;
propertyWithAnExceedinglyLongName6: string;
propertyWithAnExceedinglyLongName7: string;
propertyWithAnExceedinglyLongName8: string;
};
// String representation of type of 'x' should be truncated in error message
var s: string = x;
// @errors: 2322 2454
var x: {
propertyWithAnExceedinglyLongName1: string;
propertyWithAnExceedinglyLongName2: string;
propertyWithAnExceedinglyLongName3: string;
propertyWithAnExceedinglyLongName4: string;
propertyWithAnExceedinglyLongName5: string;
propertyWithAnExceedinglyLongName6: string;
propertyWithAnExceedinglyLongName7: string;
propertyWithAnExceedinglyLongName8: string;
};
// String representation of type of 'x' should be truncated in error message
var s: string = x;
With true
ts
// @errors: 2322 2454
// @noErrorTruncation: true
var x: {
propertyWithAnExceedinglyLongName1: string;
propertyWithAnExceedinglyLongName2: string;
propertyWithAnExceedinglyLongName3: string;
propertyWithAnExceedinglyLongName4: string;
propertyWithAnExceedinglyLongName5: string;
propertyWithAnExceedinglyLongName6: string;
propertyWithAnExceedinglyLongName7: string;
propertyWithAnExceedinglyLongName8: string;
};
// String representation of type of 'x' should be truncated in error message
var s: string = x;
// @errors: 2322 2454
// @noErrorTruncation: true
var x: {
propertyWithAnExceedinglyLongName1: string;
propertyWithAnExceedinglyLongName2: string;
propertyWithAnExceedinglyLongName3: string;
propertyWithAnExceedinglyLongName4: string;
propertyWithAnExceedinglyLongName5: string;
propertyWithAnExceedinglyLongName6: string;
propertyWithAnExceedinglyLongName7: string;
propertyWithAnExceedinglyLongName8: string;
};
// String representation of type of 'x' should be truncated in error message
var s: string = x;