Skip to content

Commit

Permalink
Merge pull request #23 from jnssnmrcs/fix-typo
Browse files Browse the repository at this point in the history
Fixing type typo.
  • Loading branch information
skoshx authored Jul 1, 2023
2 parents ea391a0 + 03b9d85 commit ce61a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ export function selectFromEntries<
select: S,
): Deno.KvEntry<Pick<z.output<T["schema"]>, keyof S & string>>[] {
return items.map((item) => {
item.value = Object.keys(select).reduce<Partial<T["schema"]>>(
item.value = Object.keys(select).reduce(
(previous, current) =>
!isKeyOf(current, item.value) ? previous : {
...previous,
[current]: item.value[current],
},
{},
{} as Partial<z.output<T["schema"]>>,
);

return item;
Expand Down

0 comments on commit ce61a15

Please sign in to comment.