VaultTransaction.process method
VaultTransaction › process
Transforms the content of a file, capturing the old content so it can be restored on rollback.Signature:
process(pathOrFile: PathOrAbstractFile, newContentProvider: (content: string) => string): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| pathOrFile | PathOrAbstractFile | The path or file to process. |
| newContentProvider | (content: string) => string | Maps the current content to the new content. |
Returns: Promise<void> — A Promise that resolves when the file is processed.