
Highlighter is autolocked, so we shouldn't show the lock icon ### Change Type - [x] `patch` — Bug fix [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Add a step-by-step description of how to test your PR here. 2. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - We no longer show the tool lock option for highlighter - it didn't do anything anyway
76 lines
1.3 KiB
Text
76 lines
1.3 KiB
Text
---
|
|
title: defineMigrations
|
|
status: published
|
|
category: store
|
|
group: Function
|
|
author: api
|
|
date: 06/23/2023
|
|
order: 8
|
|
---<Small>Public Function</Small>
|
|
|
|
|
|
|
|
|
|
##### Parameters
|
|
|
|
|
|
<ParametersTable>
|
|
|
|
<ParametersTableRow>
|
|
<ParametersTableName>
|
|
|
|
`opts`
|
|
|
|
</ParametersTableName>
|
|
<ParametersTableDescription>
|
|
|
|
```ts
|
|
{
|
|
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>
|
|
}
|
|
```
|
|
|
|
|
|
|
|
</ParametersTableDescription>
|
|
</ParametersTableRow>
|
|
</ParametersTable>
|
|
|
|
##### Returns
|
|
|
|
|
|
```ts
|
|
Migrations
|
|
```
|
|
|
|
##### References
|
|
|
|
[Migration](/gen/store/Migration-type), [Migrations](/gen/store/Migrations-interface)
|
|
|