Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lib-dynamodb): declare File interface without requiring dom lib #3890

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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