Skip to content

Commit

Permalink
Update src/types.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Erick Zhao <erick@hotmail.ca>
  • Loading branch information
MarshallOfSound and erickzhao committed Jul 13, 2024
1 parent 0ee6383 commit 1f3aef6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,20 @@ export interface ElectronDownloadRequestOptions {
/**
* Controls the cache read and write behavior.
*
* When set to either `ReadOnly` or `Bypass` the caller is responsible
* for cleaning up the returned file path once they are done using
* it. E.g. `fs.remove(path.dirname(pathFromElectronGet))`
* When set to either {@link ElectronDownloadCacheMode.ReadOnly | ReadOnly} or
* {@link ElectronDownloadCacheMode.Bypass | Bypass}, the caller is responsible
* for cleaning up the returned file path once they are done using it
* (e.g. via `fs.remove(path.dirname(pathFromElectronGet))`).
*
* When set to either `WriteOnly` or `ReadWrite` (the default) the caller
* When set to either {@link ElectronDownloadCacheMode.WriteOnly | WriteOnly} or
* {@link ElectronDownloadCacheMode.ReadWrite | ReadWrite} (the default), the caller
* should not move or delete the file path that is returned as the path
* points directly to the disk cache.
*
* Defaults to `ElectronDownloadCacheMode.ReadWrite`.
* This option cannot be used in conjunction with {@link ElectronDownloadRequestOptions.force}.
*
* @defaultValue {@link ElectronDownloadCacheMode.ReadWrite}
*/
cacheMode?: ElectronDownloadCacheMode;
}

/**
Expand Down

0 comments on commit 1f3aef6

Please sign in to comment.