UNPKG

obsidian-dev-utils

Version:

This is the collection of useful functions that you can use for your Obsidian plugin development

16 lines (15 loc) 510 B
/** * @packageDocumentation * * This module provides utility functions for working with resource URLs in Obsidian. */ import type { App } from 'obsidian'; /** * Converts a relative path to a resource URL. * * @param app - The Obsidian application instance. * @param relativePath - The relative path to the resource. * @param notePath - The path of the note. * @returns The resource URL. */ export declare function relativePathToResourceUrl(app: App, relativePath: string, notePath: string): string;