Open AnyhowStep opened 4 years ago
For example, instead of,
type AfterFromClause = IQuery<{ ... }>;
Use,
interface AfterFromClause extends IQuery<{ ... }> {}
The interface is here because the identifier AfterFromClause is guaranteed to be used in emit for error messages, .d.ts
AfterFromClause
The type alias may be expanded, which may make reading error messages hard to read
For example, instead of,
Use,
The interface is here because the identifier
AfterFromClause
is guaranteed to be used in emit for error messages, .d.tsThe type alias may be expanded, which may make reading error messages hard to read