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

Iface

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

Declaration

export interface Iface<A extends Park = Park, C extends Json = Json> {
  kind: "iface";
  name: string;
  version: number;
  context: Schema<C>;
  /** Runtime-checkable method set (Go's method-set check moved to boot time). */
  methods: readonly string[];
  /** Static tree shape: boot is the only place children are created. */
  children: Record<string, ChildDecl>;
  /** Ships with the code, keyed by fromVersion; chained automatically (1→2→3). */
  migrations: Record<number, (old: Json) => Json>;
  /** Phantom marker carrying the api type (covariant so Instance<Derived> is an Instance<Park>); never a runtime value. */
  api?: A;
}

Members (8)

kind

kind: "iface"

name

name: string

version

version: number

context

context: Schema<C>

methods

methods: readonly string[]

Runtime-checkable method set (Go's method-set check moved to boot time).

children

children: Record<string, ChildDecl>

Static tree shape: boot is the only place children are created.

migrations

migrations: Record<number, (old: Json) => Json>

Ships with the code, keyed by fromVersion; chained automatically (1→2→3).

api

api?: A

Phantom marker carrying the api type (covariant so Instance is an Instance); never a runtime value.

Type Cross-References

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