Skip to content

Commit ecd9bd9

Browse files
authored
Merge pull request #124 from malthe/fix-result-row-generic
Result row array generic should be 'any', not the record type
2 parents 31f50d4 + 186e480 commit ecd9bd9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
In next release ...
22

3-
-
3+
- Fixed an issue where the result row array type would use the record generic
4+
as the value type instead of `any` which was incorrect.
45

56
## v2.0.2 (2024-04-12)
67

src/result.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ResultRowImpl<T> extends Array<any> {
5656
* the row into an object.
5757
*
5858
*/
59-
export type ResultRow<T> = ReadonlyArray<T> &
59+
export type ResultRow<T> = ReadonlyArray<any> &
6060
Pick<ResultRowImpl<T>, 'get' | 'reify'>;
6161

6262
/**

0 commit comments

Comments
 (0)