Skip to content

Commit

Permalink
chore: Resolve todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jan 1, 2021
1 parent 93f6983 commit 089ffbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/converter/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,8 +809,8 @@ const tupleConverter: TypeConverter<ts.TupleTypeNode, ts.TupleType> = {
convertType(context, type)
);

// TODO: TS apparently lies about this... GH1439.
// 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.
if (node.elements && node.elements.every(ts.isNamedTupleMember)) {
const namedMembers = node.elements as readonly ts.NamedTupleMember[];
elements = elements?.map(
Expand Down

0 comments on commit 089ffbc

Please sign in to comment.