Skip to content

pantoken / packages/plugin-kit/src / capabilitiesOf

फंक्शन: capabilitiesOf()

capabilitiesOf(plugin): Stage[] | undefined

बीटा

एक फैक्टरीकृत प्लगइन द्वारा घोषित क्षमताएँ, या गैर-फैक्टरीकृत प्लगइन के लिए undefined

पैरामीटर

plugin

PantokenPlugin

वापसी

Stage[] | undefined

उदाहरण

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

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