Skip to content

getTextBasedComponentValue<T>

Gets the text based component value of the component.

Import:

import { getTextBasedComponentValue } from 'obsidian-dev-utils/obsidian/setting-components/text-based-component';

Signature:

function getTextBasedComponentValue(obj: unknown): TextBasedComponent<T> | null

Parameters:

ParameterTypeDescription
objunknownAny object.

Returns: TextBasedComponent<T> | null — The text based component value of the component or null if the component is not a text based component.