Declaration file generated reports error on compilation while there were no errors reported during generation #5659
Labels
Bug
A bug in TypeScript
Domain: Literal Types
Unit types including string literal types, numeric literal types, Boolean literals, null, undefined
Fixed
A PR has been merged for this issue
Milestone
Test case: https://github.com/Microsoft/TypeScript/blob/master/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTypeParameterConstraint01.ts#L11
Repro:
Compile a.ts with --d
No errors reported
Compile a.d.ts generated, reports error
a.ts:
The text was updated successfully, but these errors were encountered: