Skip to content

GetExtensionParams

Parameters for getExtension.

Import:

import type { GetExtensionParams } from 'obsidian-dev-utils/obsidian/file-system';

Signature:

export interface GetExtensionParams

Properties

PropertyTypeDescription
appAppThe Obsidian App instance.
pathOrFilePathOrAbstractFileThe path or abstract file to get the extension of.
whenMissingTreatAs?MissingPathTreatmentHow to answer when the path resolves to nothing in the vault.

Links to this page: