getTextLabel

Source
import { getTextLabel } from "@prestojs/util";
getTextLabel(item)

Get a plain text label from an item

If does not implement TextLabeled an error is thrown. To conditional call this check if labeled first with isTextLabeled.

ParameterTypeDescription
*itemany
string