Skip to content

Commit

Permalink
🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
mindler-sasu committed Mar 17, 2024
1 parent 8791c75 commit bcdd047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/typeHelpers.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe("typeHelpers typecheck", () => {
Table,
["key", "tuple[0]", "tuple[1]"]
>;
// TODO Fix this to be [{kissa: "koira"}, number]
// TODO Fix this to be [{kissa: "koira"}, number] or at least union
expectTypeOf<selectTuple3>().toEqualTypeOf<{
key: number;
tuple: [
Expand Down
2 changes: 1 addition & 1 deletion src/typeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type RecursiveSelectAttributes<Table, Properties> = Properties extends [
? [First, IsTuple<Table>] extends [`${number}`, true]
? First extends keyof Table
? [RecursiveSelectAttributes<Table[First], Rest>]
: Table
: never
: [First, Table] extends [`${number}`, any[]]
? RecursiveSelectAttributes<As<Table, any[]>[number], Rest>[]
: First extends keyof Table
Expand Down

0 comments on commit bcdd047

Please sign in to comment.