Stringable

type Stringable

type Stringable = string | {
    toString(): string;
};

String type or object with toString method.

This type is mostly used for properties of UI preset definitions that take a string or a ‘stringable’ object such as the result of tt, e.g. UILabel.Presets.text.