@prismshadow/penguin-core/kernel · Authoring

Contributed

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

One contribution as the consuming module receives it.

Declaration

export interface Contributed<D = JsonObject, C = unknown> {
  id: string;
  /** The contributor module's name. */
  from: string;
  data: D;
  /** The contributor's `bind[id]`, when the slot declares a code half. */
  code?: C;
}

Members (4)

id

id: string

from

from: string

The contributor module's name.

data

data: D

code

code?: C

The contributor's bind[id], when the slot declares a code half.

Type Cross-References

Static signature graph within @prismshadow/penguin-core/kernel
references1 kernel type
referenced by1 kernel API