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

TagTrait

A trait with no record, which an entity holds or not: what defineTrait(name) and trait() make. As koota’s TagTrait.

  • TagTrait

TagTrait(params?): [Trait<Record<string, never>>, Partial<{[key: string]: never; }>]

A trait with no record, which an entity holds or not: what defineTrait(name) and trait() make. As koota’s TagTrait.

Parameter Type
params? Partial<{[key: string]: never; }>

[Trait<Record<string, never>>, Partial<{[key: string]: never; }>]