Skip to content

Commit

Permalink
fix(lib-dynamodb): declare File interface without requiring dom lib (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Aug 30, 2022
1 parent 2227646 commit 574507f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/util-dynamodb/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ export type NativeScalarAttributeValue =
| NativeAttributeBinary
| string;

/**
* Declare File in case DOM is not added to the tsconfig lib causing
* File interface is not defined. For developers with DOM lib added,
* the File interface will be merged correctly.
*/
declare global {
interface File {}
}

export type NativeAttributeBinary =
| ArrayBuffer
| Blob
Expand Down

0 comments on commit 574507f

Please sign in to comment.