File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
packages/util-dynamodb/src Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
- import type { Exact } from "@smithy/types" ;
2
-
3
1
/**
4
2
* A interface recognizable as a numeric value that stores the underlying number
5
3
* as a string.
@@ -44,19 +42,17 @@ declare global {
44
42
interface File { }
45
43
}
46
44
47
- type Unavailable = never ;
48
- type BlobDefined = Exact < Blob , { } > extends true ? false : true ;
49
- type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable ;
45
+ type IfDefined < T > = { } extends T ? never : T ;
50
46
51
47
/**
52
48
* @public
53
49
*/
54
50
export type NativeAttributeBinary =
55
51
| ArrayBuffer
56
- | BlobOptionalType
57
- | Buffer
52
+ | IfDefined < Blob >
53
+ | IfDefined < Buffer >
58
54
| DataView
59
- | File
55
+ | IfDefined < File >
60
56
| Int8Array
61
57
| Uint8Array
62
58
| Uint8ClampedArray
You can’t perform that action at this time.
0 commit comments