Module: helpers/utils/download-restart
Table of contents
Functions
Functions
modifyState
▸ modifyState(state
): DownloadState
Modifies the state if it matches a specific condition.
Parameters
Name | Type | Description |
---|---|---|
state | DownloadState | The current state as a string. |
Returns
DownloadState
The modified state.
Defined in
src/electron/helpers/utils/download-restart.ts:10 (opens in a new tab)
traverseAndModify
▸ traverseAndModify(tree
): DownloadsSettings
Recursively traverses and modifies a tree structure.
Parameters
Name | Type | Description |
---|---|---|
tree | DownloadsSettings | The tree to traverse and modify. |
Returns
The modified tree.
Defined in
src/electron/helpers/utils/download-restart.ts:23 (opens in a new tab)