chore(compiler): followup fix for PR#11846 (#11870)
Original PR set [] to any, but any[], is a tighter type and still works for SNC enabled consumers of the emit.
This commit is contained in:
parent
9be895b6da
commit
52f5ae1961
|
@ -86,7 +86,7 @@ class _TsEmitterVisitor extends AbstractEmitterVisitor implements o.TypeVisitor
|
||||||
}
|
}
|
||||||
const result = super.visitLiteralArrayExpr(ast, ctx);
|
const result = super.visitLiteralArrayExpr(ast, ctx);
|
||||||
if (ast.entries.length === 0) {
|
if (ast.entries.length === 0) {
|
||||||
ctx.print(' as any)');
|
ctx.print(' as any[])');
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue