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

Impl

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

An impl provides the factory for its node plus impls for declared children. children values handed to create(): singleton child → its api, keyed child → a KeyedHandle. (Loosely typed until the arktype-era inference — see TODO(schema) in json.ts.)

Declaration

export interface Impl<A extends Park = Park, C extends Json = Json> {
  create(ctx: NodeCtx, context: C, children: Record<string, unknown>): A | Promise<A>;
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  children?: Record<string, Impl<any, any>>;
}

Members (2)

create

create(ctx: NodeCtx, context: C, children: Record<string, unknown>): A | Promise<A>
@paramctxNodeCtx
@paramcontextC
@paramchildrenRecord<string, unknown>
@returnsA | Promise<A>

children

children?: Record<string, Impl<any, any>>

Type Cross-References

Static signature graph within @prismshadow/penguin-core/kernel
references3 kernel types
referenced by1 kernel API