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

WithSaves

WithSaves<Options, Saves> = keyof Saves extends never ? unknown extends Options ? undefined : Options : unknown extends Options ? object : Options & object

A factory’s options with the saves override beside them, derived from the plugin’s own saves: a plugin with none takes no saves. A factory with no options of its own takes saves or nothing, never an empty record, which its call would refuse as options it cannot record.

Type Parameter
Options
Saves extends SaveDeclarations