@prismshadow/penguin-core/kernel · Assembly & Boot

ModuleTree

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

A booted tree.

Declaration

export interface ModuleTree {
  /** A module's provided api by module name and alias. */
  api<T = unknown>(module: string, alias: string): T;
  has(module: string): boolean;
  /** Every module's parked document, by name — the platform node stores this. */
  park(): Record<string, Json>;
  /** Reverse creation order. */
  dispose(): void;
}

Members (4)

api

api<T = unknown>(module: string, alias: string): T

A module's provided api by module name and alias.

@parammodulestring
@paramaliasstring
@returnsT

has

has(module: string): boolean
@parammodulestring
@returnsboolean

park

park(): Record<string, Json>

Every module's parked document, by name — the platform node stores this.

@returnsRecord<string, Json>

dispose

dispose(): void

Reverse creation order.

@returnsvoid

Type Cross-References

Static signature graph within @prismshadow/penguin-core/kernel
references1 kernel type
referenced by1 kernel API