Skip to content

pantoken / packages/plugin-kit/src / capabilitiesOf

Fonksiyon: capabilitiesOf()

capabilitiesOf(plugin): Stage[] | undefined

Beta

Bir factoried eklentinin beyan ettiği yetenekler veya factoried olmayan bir eklenti için undefined.

Parametreler

plugin

PantokenPlugin

Döndürür

Stage[] | undefined

Örnek

ts
import { capabilitiesOf, definePlugin } from "@pantoken/plugin-kit";

capabilitiesOf(definePlugin({ name: "brand", tokens: (c) => c.tokens })); // → ["tokens"]
capabilitiesOf({ name: "hand-written" });                                 // → undefined