Skip to content

Commit d3c5162

Browse files
committed
fix incorrect entity type
1 parent bea132a commit d3c5162

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/db/src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ export type PrimaryKeyOf<T> = keyof T &
5858
/**
5959
* An object with a primary key.
6060
*/
61-
export type Entity<T> = Record<PrimaryKeyOf<T>, PrimaryKey>;
61+
export type Entity<T> = {
62+
[key in PrimaryKeyOf<T>]: T[key];
63+
};
6264

6365
/**
6466
* Returns type T if T only contains valid properties.

0 commit comments

Comments
 (0)