VirtualFile
A memory file and its lifetime. Dispose it before its owning plugin unloads.
Import:
import type { VirtualFile } from '@mnaoumov/obsidian-lib/virtual-file';Signature:
export interface VirtualFile extends DisposableExExtends: DisposableEx
Properties
| Property | Type | Description |
|---|---|---|
| content | string | The immutable text; accessing it requires no asynchronous read. |
| file | TFile | The file accepted by Obsidian's link resolver and file views. |
Links to this page: