diff --git a/packages/util-dynamodb/src/models.ts b/packages/util-dynamodb/src/models.ts index b61953da7fc2..00e9b1caa0fb 100644 --- a/packages/util-dynamodb/src/models.ts +++ b/packages/util-dynamodb/src/models.ts @@ -1,5 +1,3 @@ -import type { Exact } from "@smithy/types"; - /** * A interface recognizable as a numeric value that stores the underlying number * as a string. @@ -44,19 +42,17 @@ declare global { interface File {} } -type Unavailable = never; -type BlobDefined = Exact extends true ? false : true; -type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable; +type IfDefined = {} extends T ? never : T; /** * @public */ export type NativeAttributeBinary = | ArrayBuffer - | BlobOptionalType - | Buffer + | IfDefined + | IfDefined | DataView - | File + | IfDefined | Int8Array | Uint8Array | Uint8ClampedArray