UNPKG

obsidian-dev-utils

Version:

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

26 lines (25 loc) 698 B
/** * @packageDocumentation * * Contains a component and a helper function to register async events. */ import { Component } from 'obsidian'; import type { AsyncEventRef } from '../../AsyncEvents.mjs'; /** * A component that can register async events. */ export declare class AsyncEventsComponent extends Component { /** * Registers an async event. * * @param eventRef - The event reference. */ registerAsyncEvent(eventRef: AsyncEventRef): void; } /** * Registers an async event. * * @param component - The component. * @param eventRef - The event reference. */ export declare function registerAsyncEvent(component: Component, eventRef: AsyncEventRef): void;