@prismshadow/penguin-core/kernel · Authoring

Slot

interface type-only
Source ↗
IMPORT import type { Slot } from "@prismshadow/penguin-core/kernel";

A contribution slot with a CODE half: the data one contribution carries in the manifest, and the implementation the contributor binds by id. A slot written as a plain object type is data-only.

Declaration

export interface Slot<Data, Code = never> {
  data: Data;
  code: Code;
}

Members (2)

data

data: Data

code

code: Code