Skip to content

Commit

Permalink
fix: UpdateItemOutput's Attributes shouldn't be partial if ReturnValu…
Browse files Browse the repository at this point in the history
…e is set to ALL_* (#35)
  • Loading branch information
evanandrewrose authored May 13, 2022
1 parent cffe83a commit 726a67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface UpdateItemOutput<
ReturnValue extends undefined | "NONE"
? undefined
: ReturnValue extends "ALL_OLD" | "ALL_NEW"
? Partial<Narrow<Item, Key, Format>>
? Narrow<Item, Key, Format>
: ReturnValue extends "UPDATED_OLD" | "UPDATED_NEW"
? Partial<Narrow<Item, Key, Format>>
: Partial<Narrow<Item, Key, Format>>,
Expand Down

0 comments on commit 726a67d

Please sign in to comment.