Skip to content

pantoken / packages/utils/src / tokenNames

Mahi: tokenNames()

tokenNames(ir): Set<string>

Beta

Te huinga o ngā ingoa tōkena e tautuhia ana e te IR.

Ngā Tawhā

ir

pānui-anake Token[]

Whakahokia

Set<string>

Tauira

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