Skip to content

@web-engine-dev/resources


@web-engine-dev/resources / SchemaMigration

Type Alias: SchemaMigration()

SchemaMigration = (data) => Record<string, unknown>

A migration function that transforms stored data from one schema version to the next.

Parameters

data

Record<string, unknown>

The mutable data object at the source version

Returns

Record<string, unknown>

The data object at the target version (may be the same reference)

Proprietary software. All rights reserved.