Skip to content

Commit b8bb0c2

Browse files
author
Arthur Ozga
committed
emit type parameter's default
1 parent a5bef21 commit b8bb0c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/emitter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ namespace ts {
814814
function emitTypeParameter(node: TypeParameterDeclaration) {
815815
emit(node.name);
816816
emitWithPrefix(" extends ", node.constraint);
817+
emitWithPrefix(" = ", node.default);
817818
}
818819

819820
function emitParameter(node: ParameterDeclaration) {

0 commit comments

Comments
 (0)