Skip to content

pantoken-root / packages/utils/src / tokenNames

Feidhm: tokenNames() ​

tokenNames(ir): Set<string>

Béite

An tacar d'ainmneacha token a shonraíonn an IR.

Paraiméadair ​

ir ​

léamh-aonair Token[]

Tuairisceáin ​

Set<string>

Sampla ​

ts
import { tokenNames } from "@pantoken/utils";
import type { Token } from "@pantoken/model";

const ir: Token[] = [
  { name: "--instui-leaf", syntax: "<color>", inherits: true, value: "#0374B5" },
];
tokenNames(ir); // → Set { "--instui-leaf" }