Skip to content

pantoken / 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

readonly 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" }