Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api"

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

Generated using TypeDoc