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