• Serializes a value, with correct handling for nesting, Maps, BigInts and Svelte-style stores. hooks maps from a prototype object to a type tag and a custom serialization function. ignorePrototype is an internally used parameter used to ignore a specific prototype when serializing an object.

    Parameters

    • v: any
    • hooks: Map<any, [string, ((data) => object)]> = saveManager.serializeHooks
    • ignorePrototype: any = undefined

    Returns any