Iface
interface type-only low-levelDeclaration
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: stringversion
version: numbermethods
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
Ships with the code, keyed by fromVersion; chained automatically (1→2→3).
api
api?: APhantom marker carrying the api type (covariant so Instance is an Instance); never a runtime value.