Skip to content

pantoken / packages/plugin-kit/src / isFactoried

फंक्शन: isFactoried()

isFactoried(plugin): boolean

बीटा

सत्य जब कोई प्लगइन definePlugin (या extendPlugin) द्वारा बनाया गया हो।

पैरामीटर

plugin

PantokenPlugin

वापसी

boolean

उदाहरण

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

isFactoried(definePlugin({ name: "brand", css: () => ({}) })); // → true
isFactoried({ name: "hand-written", css: () => ({}) });        // → false