defineMigrations
Public Function
Name | Description |
---|
opts
| {
firstVersion?: CurrentVersion extends number
? FirstVersion
: never
currentVersion?: CurrentVersion
migrators?: CurrentVersion extends number
? FirstVersion extends number
? CurrentVersion extends FirstVersion
? {
[version in Exclude<
Range<1, CurrentVersion>,
0
>]: Migration
}
: {
[version in Exclude<
Range<FirstVersion, CurrentVersion>,
FirstVersion
>]: Migration
}
: {
[version in Exclude<
Range<1, CurrentVersion>,
0
>]: Migration
}
: never
subTypeKey?: string
subTypeMigrations?: Record<string, BaseMigrationsInfo>
}
|
Migrations
EMPTY_SYMBOL, Exclude, Range, Migration, Record, BaseMigrationsInfo, Migrations
Edit this pageLast edited on 15 June 2023