Skip to content

Commit

Permalink
docs: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosSacASac committed Jul 13, 2021
1 parent 843ac84 commit 3d429e0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,17 +608,20 @@ export interface File {
file.filepath: string;

// The name this file had according to the uploading client.
file.name: string | null;
file.originalFilename: string | null;

// calculated based on options provided
file.newFilename: string | null;

// The mime type of this file, according to the uploading client.
file.type: string | null;
file.mimetype: string | null;

// A Date object (or `null`) containing the time this file was last written to.
// Mostly here for compatibility with the [W3C File API Draft](http://dev.w3.org/2006/webapi/FileAPI/).
file.lastModifiedDate: Date | null;
file.mtime: Date | null;

file.hashAlgorithm: false | |'sha1' | 'md5' | 'sha256'
// If `options.hashAlgorithm` calculation was set, you can read the hex digest out of this var.
// If `options.hashAlgorithm` calculation was set, you can read the hex digest out of this var (at the end it will be a string)
file.hash: string | object | null;
}
```
Expand Down

0 comments on commit 3d429e0

Please sign in to comment.