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

SaveHandles

SaveHandles<Shape> = string extends keyof Shape ? Readonly<Record<string, SaveHandle>> : { readonly [Key in keyof Shape]: Shape[Key] extends SaveDeclaration<SaveSchema, infer Scopes> ? SaveHandle<Scopes[number]> : SaveHandle }

A plugin’s handle per save, by name, each typed by the scopes a game may keep it in, and any by name for a record built at run time.

Type Parameter Default type
Shape SaveDeclarations