Skip to content

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 DisposableEx

Extends: DisposableEx

Properties

PropertyTypeDescription
contentstringThe immutable text; accessing it requires no asynchronous read.
fileTFileThe file accepted by Obsidian's link resolver and file views.

Links to this page: