addAlias
constaddAlias: (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.
Parameters
Section titled “Parameters”Token to add the alias to.
string
Alias to add. To add multiple aliases, separate them with spaces.
Returns
Section titled “Returns”string
The token’s new alias.