Skip to content

pantoken-root / packages/plugin-kit/src / isFactoried

دالة: isFactoried() ​

isFactoried(plugin): boolean

Beta

صحيح إذا تم إنشاء مكوّن إضافي بواسطة definePlugin (أو extendPlugin).

Parameters ​

plugin ​

PantokenPlugin

Returns ​

boolean

Example ​

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

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