Options
All
  • Public
  • Public/Protected
  • All
Menu

@thi.ng/system

Index

Type aliases

ComponentFactory

ComponentFactory<T>: Fn<T, ILifecycle>

Component initialization function.

Type parameters

SystemMap

SystemMap<T>: Record<Keys<T>, ILifecycle>

Defines the participants of a system. Maps component names to their respective types

Type parameters

  • T

SystemSpecs

SystemSpecs<T>: Record<Keys<T>, { deps?: Keys<T>[]; factory: ComponentFactory<T> }>

Definition object of system component specs, i.e. their factories and component dependencies. The generic type arg T is used to infer & validate all specs.

Type parameters

Functions

Const defSystem

Const setLogger

  • setLogger(logger: ILogger): ILogger
  • Sets package logger to given instance.

    Parameters

    • logger: ILogger

    Returns ILogger

Generated using TypeDoc