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