Skip to content

pantoken / packages/plugin-kit/src / isFactoried

Funksjon: isFactoried()

isFactoried(plugin): boolean

Beta

Sann når en plugin ble opprettet av definePlugin (eller extendPlugin).

Parametere

plugin

PantokenPlugin

Returnerer

boolean

Eksempel

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

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