ProcessParams
Parameters for process.
Import:
import type { ProcessParams } from 'obsidian-dev-utils/obsidian/vault';Signature:
export interface ProcessParams extends ProcessOptionsExtends: ProcessOptions
Properties
| Property | Type | Description |
|---|---|---|
| abortSignal? | AbortSignal | A abort signal to cancel the retry operation. (Inherited from ProcessOptions) |
| app | App | The application instance, typically used for accessing the vault. |
| newContentProvider | ValueProvider<null | string, ContentArgs> | A value provider that returns the new content based on the old content of the file. It can be a string or a function that takes the old content as an argument and returns the new content. If function is provided, it should return null if the process should be retried. |
| pathOrFile | PathOrFile | The path or file to be processed. It can be a string representing the path or a file object. |
| resourceLockComponent | null | ResourceLockComponent | An resource-lock component used to lock the file's editor read-only for the duration of processing. The lock is reference-counted, so it composes with any outer operation-level lock on the same note. (Inherited from ProcessOptions) |
| retryDelayInMilliseconds? | number | A delay in milliseconds between retry attempts. (Inherited from ProcessOptions) |
| shouldFailOnMissingFile? | boolean | Whether to fail if the file is missing or deleted. (Inherited from ProcessOptions) |
| shouldRetryOnError? | boolean | Whether to retry the function on error. (Inherited from ProcessOptions) |
| shouldShowTimeoutNotice? | boolean | Whether to show a timeout notice. (Inherited from ProcessOptions) |
| timeoutInMilliseconds? | number | A maximum time in milliseconds to wait before giving up on retrying. (Inherited from ProcessOptions) |
Links to this page: