isCanvasFile
Checks if the given file is a canvas file.
Import:
import { isCanvasFile } from '@mnaoumov/obsidian-lib/file-system';Signature:
function isCanvasFile(pathOrFile: PathOrAbstractFile | null): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
pathOrFile |
PathOrAbstractFile | null | The path or file to check. |
Returns: boolean — A boolean indicating whether the file is a canvas file or not.