Skip to content

pantoken / packages/plugin-kit/src / isFactoried

Hàm: isFactoried()

isFactoried(plugin): boolean

Beta

True khi một plugin được tạo bởi definePlugin (hoặc extendPlugin).

Tham số

plugin

PantokenPlugin

Trả về

boolean

Ví dụ

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

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