From 726a67dfafb7319f07730903c6b91ccde4c2c9e0 Mon Sep 17 00:00:00 2001 From: Evan Rose Date: Fri, 13 May 2022 03:22:12 -0400 Subject: [PATCH] fix: UpdateItemOutput's Attributes shouldn't be partial if ReturnValue is set to ALL_* (#35) --- src/update-item.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/update-item.ts b/src/update-item.ts index 8c64368..ce47347 100644 --- a/src/update-item.ts +++ b/src/update-item.ts @@ -47,7 +47,7 @@ export interface UpdateItemOutput< ReturnValue extends undefined | "NONE" ? undefined : ReturnValue extends "ALL_OLD" | "ALL_NEW" - ? Partial> + ? Narrow : ReturnValue extends "UPDATED_OLD" | "UPDATED_NEW" ? Partial> : Partial>,