asFile
Converts an abstract file to a file.
Import:
import { asFile } from 'obsidian-dev-utils/obsidian/file-system';Signature:
function asFile(abstractFile: TAbstractFile | null): TFileParameters:
| Parameter | Type | Description |
|---|---|---|
abstractFile | TAbstractFile | null | The abstract file to convert. |
Returns: TFile — The file.