LogoPixi’VN
pixi-jsType aliases

Type Alias: TextString

> TextString = string | number | { toString: () => string; }

Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:21

A string or number that can be used as text.

Example

const text: TextString = 'Hello Pixi!';
const text2: TextString = 12345;
const text3: TextString = { toString: () => 'Hello Pixi!' };

Standard