<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Vault`](Vault) › [on('modify')](Vault/on('modify').md)
## Vault.on('modify') method
Called when a file is modified.
**Signature:**
```typescript
on(name: 'modify', callback: (file: TAbstractFile) => any, ctx?: any): EventRef;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>name</code> | <code>'modify'</code> | |
| <code>callback</code> | <code>(file: </code>[`TAbstractFile`](TAbstractFile)<code>) => any</code> | |
| <code>ctx</code> | <code>any</code> | _(Optional)_ |
**Returns:**
[`EventRef`](EventRef)
Not found
This page does not exist