Magek Framework
GitHub
Website
Preparing search index...
ToVersion
Function ToVersion
ToVersion
<
TOldSchema
,
TNewSchema
>
(
toVersion
:
number
,
props
:
{
fromSchema
:
Class
<
TOldSchema
>
;
toSchema
:
Class
<
TNewSchema
>
}
,
)
:
(
migrationInstanceOrMethod
:
Function
|
Instance
,
propertyNameOrContext
:
string
|
Stage3MethodContext
,
propertyDescriptor
?:
MigrationMethod
<
TOldSchema
,
TNewSchema
>
,
)
=>
void
Decorator to tell Magek the version you are migrating to
Type Parameters
TOldSchema
TNewSchema
Parameters
toVersion
:
number
props
:
{
fromSchema
:
Class
<
TOldSchema
>
;
toSchema
:
Class
<
TNewSchema
>
}
Returns
(
migrationInstanceOrMethod
:
Function
|
Instance
,
propertyNameOrContext
:
string
|
Stage3MethodContext
,
propertyDescriptor
?:
MigrationMethod
<
TOldSchema
,
TNewSchema
>
,
)
=>
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
GitHub
Website
Magek Framework
Loading...
Decorator to tell Magek the version you are migrating to