Skip to content

pantoken / packages/utils/src / tokenNames

Swyddogaeth: tokenNames()

tokenNames(ir): Set<string>

Bêta

Y set o enwau tocyn y mae IR yn eu diffinio.

Paramedrau

ir

dim ond darllen Token[]

Yn dychwelyd

Set<string>

Enghraifft

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