@prismshadow/penguin-core/kernel · Assembly & Boot

ModuleCtx

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

Declaration

export interface ModuleCtx<Use = Record<string, unknown>> {
  /** Resolved requirements, by the manifest's alias. */
  use: Use;
  /** Contributions to this module's slots, by slot name. */
  contributions: Record<string, Contributed[]>;
  resources: Resources;
  /** Self-cleaning registration; drained at dispose in reverse order, children first. */
  effect(dispose: () => void): void;
}

Members (4)

use

use: Use

Resolved requirements, by the manifest's alias.

contributions

contributions: Record<string, Contributed[]>

Contributions to this module's slots, by slot name.

resources

resources: Resources

effect

effect(dispose: () => void): void

Self-cleaning registration; drained at dispose in reverse order, children first.

@paramdispose() => void
@returnsvoid

Type Cross-References

Static signature graph within @prismshadow/penguin-core/kernel
references2 kernel types
referenced by3 kernel APIs