Skip to content

pantoken-root / 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