@prismshadow/penguin-core/kernel · Low-level Kernel & Upgrade

Instance

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

Declaration

export interface Instance<A extends Park = Park> {
  api: A;
  iface: Iface<A, Json>;
  /** Pure snapshot of the whole tree; does not touch the running instance. */
  park(): ParkedNode;
  /** Children-first teardown: drains every effect registered via ctx.effect. */
  dispose(): void;
}

Members (4)

api

api: A

iface

iface: Iface<A, Json>

park

park(): ParkedNode

Pure snapshot of the whole tree; does not touch the running instance.

@returnsParkedNode

dispose

dispose(): void

Children-first teardown: drains every effect registered via ctx.effect.

@returnsvoid

Type Cross-References

Static signature graph within @prismshadow/penguin-core/kernel
references4 kernel types
referenced by2 kernel APIs