PreparedSet
import { PreparedSet } from 'pixi-silk/i18n/pixi';
A set of prepared messages.
Type Parameters#
| Type Parameter | Default type |
|---|---|
Names extends string | string |
Constructors#
Constructor#
new PreparedSet<Names extends string = string>(messages: Map<Names, PreparedMessage>): PreparedSet<Names>;
Parameters#
| Parameter | Type |
|---|---|
messages | Map<Names, PreparedMessage> |
Returns#
PreparedSet<Names>
Methods#
get()#
get(name: Names): PreparedMessage;
A prepared message by its name.
Parameters#
| Parameter | Type |
|---|---|
name | Names |
Returns#
names()#
names(): Names[];
Names in the set.
Returns#
Names[]
release()#
release(): void;
Drops the set. Bundles stay in use until Silk.releaseBundle.
Returns#
void