TextLabeled
Sourceimport type { TextLabeled } from "@prestojs/util";
Interface for items that provide a plain text label. Implementing this can save you having to pass explicit functions to label an item in other parts of the system (eg. for AsyncChoices)
See isTextLabeled and getTextLabel.
API
Methods
getLabel()
SourceReturn the plain text label for this item. This must return a string
See isTextLabeled to test for support and getTextLabel for easiest way to get the label.
Returns