Filter by Identifier type
- All
- Decorator (6)
- Function (29)
- Class (2)
- Interface (32)
- Type Alias (22)
Authoring
@Module
Registers a class as a module. create(ctx, context) runs once per App; the class's @Use fields are injected before it, its @Provide fields a…
@Component
Registers a class as a COMPONENT: a module that exports itself. The instance is the provision, named in a consumer by its own class (@Use() …
@Interface
An interface as a CLASS. It is also a runtime value, so a manifest names it by reference (requires: { db: [Db, RuntimeModule] }) instead of …
@Use
A requirement: @Use(SessionsModule) readonly runner!: ScheduleTaskRunner; — the field's type is the interface, the decorator's argument the …
@Provide
A provision: @Provide() settings!: Settings; — assigned in create, read after it; unassigned = boot error.
@Bind
The code half of one contribution: @Bind("agents.routes") routes!: Hono; — assigned in create.
Slot
type
A contribution slot with a CODE half: the data one contribution carries in the manifest, and the implementation the contributor binds by id.…
Opaque
type
Type-level markers the interface generator (bin/gen-ifaces.mjs) recognizes in a package. They exist only to be projected; at runtime they ar…
ClassCtx
type
What a module class's create receives: everything in ModuleCtx except use — requirements are fields.
Contributed
type
One contribution as the consuming module receives it.
Resources
type
Runtime-owned live resources (pty, child processes, connections).
Assembly & Boot
moduleDefOf
Turns a module class (and, recursively, its children) into the ModuleDef the booter runs. The string manifest is the generator's (table.modu…
bootModules
async function bootModules(root: ModuleDef, opts: BootModulesOptions): Promise<ModuleTree>
wire
Constructs a component OUTSIDE a tree — a script or a test that wants the class with its fields supplied by hand. The fields are assigned as…
moduleMetaOf
The meta a class was decorated with; throws for an undecorated class.
ModuleDef
type
interface ModuleDef<M extends Manifest = Manifest, Use = Record<string, unknown>, Api = Record<string, unknown…
ModuleTree
type
A booted tree.
ModuleInstance
type
interface ModuleInstance<Api = Record<string, unknown>> { api: Api; bind?: Record<string, unknown>; park?(): J…
ModuleCtx
type
interface ModuleCtx<Use = Record<string, unknown>> { use: Use; contributions: Record<string, Contributed[]>; r…
BootModulesOptions
type
interface BootModulesOptions { ifaces: TableLike; published?: { ifaces: Published; values: Record<string, Reco…
ModuleBootError
class ModuleBootError extends Error { constructor(message: string, readonly problems: Problem[] = []); }
ModuleClass
type
A module class: decorated with @Module; instantiated once per App; create is the module's create.
IfaceClass
type
An interface handle: an abstract class whose instance type is the interface (see markers.ts Interface).
ModuleMeta
type
The static half a module class declares in its decorator. Requirements and provisions are FIELDS (@Use, @Provide), where their types already…
ComponentMeta
type
What a @Component declares: a module's meta minus children — a component exports itself. name (an explicit node name) and key (an explicit m…
ManifestTable
type
The manifests the generator extracted, by module name — the modules section of the table.
IfaceTable
type
Every interface a bundle knows, keyed <module>#<Export>, plus the named data types its signatures reference by $ref (keyed the same way). Se…
Low-level Kernel & Upgrade low-level
AnyIface
type
type AnyIface = Iface<any, any>;
AnyImpl
type
type AnyImpl = Impl<any, any>;
ApiOf
type
The api a manifest's provides demands, by alias.
boot
async function boot<A extends Park, C extends Json>(impl: Impl<A, C>, iface: Iface<A, C>, context: Json, resou…
BootError
class BootError extends Error { constructor(message: string); }
ChildDecl
type
type ChildDecl = AnyIface | KeyedDecl;
defineIface
function defineIface<A extends Park, C extends Json>(def: { name: string; version: number; context: Schema<C>;…
defineModule
defineModule with no registry: every requirement is unknown at compile time.
Iface
type
interface Iface<A extends Park = Park, C extends Json = Json> { kind: "iface"; name: string; version: number; …
ifaceData
The serializable interface descriptor — the "platform interface" term of the snapshot equation (snapshot = platform interface + code + state…
IfaceRegistry
type
Interface key (<module>#<Export>) → TypeScript type: a registry a package may declare over its interface classes, and moduleDefiner<ThatRegi…
Impl
type
An impl provides the factory for its node plus impls for declared children. children values handed to create(): singleton child → its api, k…
initialDoc
Shapes a fresh (no prior state) parked document for an iface tree.
Instance
type
interface Instance<A extends Park = Park> { api: A; iface: Iface<A, Json>; park(): ParkedNode; dispose(): void…
isJsonObject
function isJsonObject(value: Json | undefined): value is JsonObject
isKeyed
function isKeyed(decl: ChildDecl): decl is KeyedDecl
Json
type
Kernel currency: everything that crosses a park/boot boundary is plain JSON.
JsonObject
type
type JsonObject = { [key: string]: Json };
keyed
Keyed collection: static shape, dynamic cardinality.
KeyedDecl
type
interface KeyedDecl { kind: "keyed"; iface: AnyIface; }
KeyedHandle
type
Handle a parent receives for a keyed() child collection.
moduleDefiner
A defineModule bound to an interface registry. A module is its manifest as a literal (the static half — the generator extracts it without ex…
ModuleImplOf
type
interface ModuleImplOf<M extends Manifest, Reg extends IfaceRegistry> { migrations?: Record<number, (old: Json…
NodeCtx
type
interface NodeCtx { resources: Resources; effect(dispose: () => void): void; }
Park
type
The minimal interface every node implements: a pure snapshot. Dispose is separate.
ParkedNode
type
Parked tree node: v is the iface version the document was parked under.
ParseFail
type
interface ParseFail { ok: false; dropped: string[]; missing: string[]; invalid: string[]; }
ParseResult
type
type ParseResult<C extends Json = Json> = { ok: true; value: C } | ParseFail;
schema
Wraps an arktype type as a kernel Schema (undeclared object keys rejected).
Schema
type
interface Schema<C extends Json = Json> { strictParse(doc: Json | undefined, path?: string): ParseResult<C>; d…
type
Re-exported from `arktype` for defining versioned context schemas passed to `schema()`.
upgrade
async function upgrade<A extends Park, C extends Json>(opts: { current: Instance<Park>; impl: Impl<A, C>; ifac…
UpgradeBlocked
type
interface UpgradeBlocked { status: "blocked"; dropped: string[]; missing: string[]; invalid: string[]; doc: Js…
UpgradeFailed
type
interface UpgradeFailed { status: "failed"; error: unknown; doc: Json; }
UpgradeResult
type
type UpgradeResult<A extends Park> = | { status: "ok"; mode: "silent" | "migrated"; instance: Instance<A>; doc…
UseOf
type
The use a manifest's requires resolves to, by alias.
Manifest & Static Verification low-level
assignable
Function subtyping: have can stand in for want when it takes no more parameters than a caller of want passes, each of its parameters accepts…
CheckResult
type
interface CheckResult { problems: Problem[]; provides: Record<string, Record<string, IfaceDecl>>; }
checkTree
function checkTree(root: ManifestNode, table: TableLike, published: Published = {},): CheckResult
ChildRef
type
type ChildRef = string | { readonly keyed: string };
closedShape
An interface's CLOSED shape, as one canonical string: its declaration plus every interface and named data type it reaches through the table,…
ContextDecl
type
interface ContextDecl { readonly version: number; readonly schema?: Json; }
dataExtends
a ⊆ b. types resolves $refs; a pair of references met again while it is being decided is assumed to hold (coinduction — the rule that makes …
describeProblem
function describeProblem(p: Problem): string
extendsExpr
a ⊆ b over the shapes of TypeExpr; data goes to arktype, interfaces recurse through the table.
IfaceDecl
type
One interface. name is for messages and lookup; identity is the member set. fields are the non-method members (Go has none; TS interfaces do…
ifaceKey
The iface-table key a manifest reference resolves to.
inlineRefs
A definition with its $refs substituted, for arktype (which knows no references); a cycle stays a reference and parses as unknown.
Manifest
type
interface Manifest { readonly name: string; readonly requires: Readonly<Record<string, Requirement>>; readonly…
ManifestNode
type
A manifest and its children, as the tree is declared.
Mismatch
type
interface Mismatch { method: string; kind: "missing" | "signature" | "field"; why: string; }
parseManifest
Strict parse of a manifest document; throws with the arktype summary on failure. An empty requires, provides, contributes or children may be…
Problem
type
type Problem = | { path: string; kind: "unresolved"; alias: string; from: string; why: string } | { path: stri…
Published
type
What the host publishes: modules with provided interfaces, no manifests of their own.
Requirement
type
interface Requirement { readonly iface: string; readonly from?: string; }
satisfies
offered satisfies required ⇔ every required method exists on offered with an assignable signature.
show
A short rendering for messages.
Sig
type
A method signature: positional parameters and a return type.
SlotDecl
type
A contribution slot: the data shape one contribution carries (an arktype expression, id excluded — the framework adds it) and, when the slot…
splitSlotKey
<module>.<slot> → its two halves.
TableLike
type
The table as functions take it: the full form, or just the interface map.
tableOf
function tableOf(t: TableLike | undefined): IfaceTable
TypeExpr
type
A type, as data.
TypeTable
type
Named data definitions a definition may reference as { "$ref": "<name>" }.