We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 630d429 commit e116b4cCopy full SHA for e116b4c
packages/util-dynamodb/src/models.ts
@@ -1,5 +1,3 @@
1
-import type { Exact } from "@smithy/types";
2
-
3
/**
4
* A interface recognizable as a numeric value that stores the underlying number
5
* as a string.
@@ -44,19 +42,17 @@ declare global {
44
42
interface File {}
45
43
}
46
47
-type Unavailable = never;
48
-type BlobDefined = Exact<Blob, {}> extends true ? false : true;
49
-type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable;
+type IfDefined<T> = {} extends T ? never : T;
50
51
52
* @public
53
*/
54
export type NativeAttributeBinary =
55
| ArrayBuffer
56
- | BlobOptionalType
57
- | Buffer
+ | IfDefined<Blob>
+ | IfDefined<Buffer>
58
| DataView
59
- | File
+ | IfDefined<File>
60
| Int8Array
61
| Uint8Array
62
| Uint8ClampedArray
0 commit comments