obsidian-dev-utils
Version:
This is the collection of useful functions that you can use for your Obsidian plugin development
15 lines (14 loc) • 472 B
text/typescript
/**
* @packageDocumentation
*
* Contains utility functions for logging in Obsidian.
*/
import type { Promisable } from 'type-fest';
/**
* Invokes a function and logs the start, end, and duration of the invocation.
*
* @param title - The title of the log.
* @param fn - The function to invoke.
* @param stackTrace - Optional stack trace.
*/
export declare function invokeAsyncAndLog(title: string, fn: () => Promisable<void>, stackTrace?: string): Promise<void>;