We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f6983 commit 089ffbcCopy full SHA for 089ffbc
src/lib/converter/types.ts
@@ -809,8 +809,8 @@ const tupleConverter: TypeConverter<ts.TupleTypeNode, ts.TupleType> = {
809
convertType(context, type)
810
);
811
812
- // TODO: TS apparently lies about this... GH1439.
813
- // Unfortunately, I can't seem to reproduce this. Needs a test case.
+ // elements was called elementTypes in TS 3.9.
+ // 3.9 doesn't have tuple members, so it's fine to skip this there.
814
if (node.elements && node.elements.every(ts.isNamedTupleMember)) {
815
const namedMembers = node.elements as readonly ts.NamedTupleMember[];
816
elements = elements?.map(
0 commit comments