UNPKG

obsidian-dev-utils

Version:

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

23 lines (22 loc) 638 B
/** * @packageDocumentation * * Contains a component that has a validator element. */ import type { ValidatorElement } from '../../../HTMLElement.mjs'; /** * A component that has a validator element. */ export interface ValidatorComponent { /** * A validator element of the component. */ readonly validatorEl: ValidatorElement; } /** * Gets a validator component related to the given object. * * @param obj - Any object. * @returns The related validator component or `null` if no related validator component is found. */ export declare function getValidatorComponent(obj: unknown): null | ValidatorComponent;