Skip to content

pantoken-root / packages/utils/src / tokenNames

Fall: tokenNames() ​

tokenNames(ir): Set<string>

Beta

Safn nafnanna á tokenum sem IR skilgreinir.

Færibreytur ​

ir ​

aðeins lesanlegt Token[]

Skilar ​

Set<string>

Dæmi ​

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