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