@prismshadow/penguin-core/kernel · Manifest & Static Verification

Manifest

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

Declaration

export interface Manifest {
  readonly name: string;
  readonly requires: Readonly<Record<string, Requirement>>;
  readonly provides: Readonly<Record<string, string>>;
  readonly contributes: Readonly<
    Record<string, ReadonlyArray<{ readonly id: string } & JsonObject>>
  >;
  readonly context?: ContextDecl;
  readonly children: ReadonlyArray<ChildRef>;
  /**
   * Aliases in `provides` that are FORWARDED from a child: the module exports what one of
   * its children provides under that interface, so the subtree's other provisions stay
   * private to it. Resolved at boot to the child declaring the interface (else the one
   * child whose provision satisfies it).
   */
  readonly exports?: ReadonlyArray<string>;
  /** What the class was declared as: a component exports itself, a module exports others. Informational. */
  readonly kind?: "module" | "component";
}

Members (8)

name

readonly name: string

requires

readonly requires: Readonly<Record<string, Requirement>>

provides

readonly provides: Readonly<Record<string, string>>

contributes

readonly contributes: Readonly<Record<string, ReadonlyArray<{ readonly id: string } & JsonObject>>>

context

readonly context?: ContextDecl

children

readonly children: ReadonlyArray<ChildRef>

exports

readonly exports?: ReadonlyArray<string>

Aliases in provides that are FORWARDED from a child: the module exports what one of its children provides under that interface, so the subtree's other provisions stay private to it. Resolved at boot to the child declaring the interface (else the one child whose provision satisfies it).

kind

readonly kind?: "module" | "component"

What the class was declared as: a component exports itself, a module exports others. Informational.

Type Cross-References

Static signature graph within @prismshadow/penguin-core/kernel