Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

SystemHandles

SystemHandles<Systems> = string extends DefinedNames<Systems> ? Readonly<Record<string, SystemHandle>> : FlatHandles<{ readonly [Name in FixedNames<Systems>]: HandleOf<DefinitionNamed<Systems, Name>> } & { readonly [Name in Exclude<DefinedNames<Systems>, FixedNames<Systems>>]?: HandleOf<DefinitionNamed<Systems, Name>> }>

A plugin’s handle per system, by the definition’s name, each typed by its phase, its predicted and its runsOn: the handle of a definition the list always holds is required, one a conditional spread may leave out is optional, and a list built at run time, whose names are not known, gives a handle of any phase under any name.

Type Parameter Default type
Systems extends readonly SystemDefinition[] readonly SystemDefinition[]