Skip to content

addAlias

const addAlias: (token, alias) => string

Defined in: prism/utils/language.d.ts:98

Appends the given alias to the token’s alias. If the token doesn’t already have an alias, it simply assigns the token’s alias.

Token

Token to add the alias to.

string

Alias to add. To add multiple aliases, separate them with spaces.

string

The token’s new alias.