Skip to content

Commit 574507f

Browse files
authored
fix(lib-dynamodb): declare File interface without requiring dom lib (#3890)
1 parent 2227646 commit 574507f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: packages/util-dynamodb/src/models.ts

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ export type NativeScalarAttributeValue =
2727
| NativeAttributeBinary
2828
| string;
2929

30+
/**
31+
* Declare File in case DOM is not added to the tsconfig lib causing
32+
* File interface is not defined. For developers with DOM lib added,
33+
* the File interface will be merged correctly.
34+
*/
35+
declare global {
36+
interface File {}
37+
}
38+
3039
export type NativeAttributeBinary =
3140
| ArrayBuffer
3241
| Blob

0 commit comments

Comments
 (0)