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> | nullParameters:
| Parameter | Type | Description |
|---|---|---|
obj | unknown | Any object. |
Returns: TextBasedComponent<T> | null — The text based component value of the component or null if the component is not a text based component.