@dxos/echo
Preparing search index...
Migration
ObjectMigration
Interface ObjectMigration
Definition of a migration from one object schema version to another.
interface
ObjectMigration
{
"~@dxos/echo/Migration"
:
"~@dxos/echo/Migration"
;
fromSchema
:
Codec
<
any
,
any
>
;
fromType
:
URI
.
URI
;
kind
:
"object"
;
onMigration
?:
(
params
:
OnMigrateProps
<
any
,
any
>
)
=>
Promise
<
void
>
;
toSchema
:
Codec
<
any
,
any
>
;
toType
:
URI
.
URI
;
transform
:
(
from
:
unknown
,
context
:
ObjectMigrationContext
,
)
=>
Promise
<
unknown
>
;
}
Hierarchy (
View Summary
)
Migration
.
Migration
ObjectMigration
Index
Properties
~@dxos/echo/
Migration
from
Schema
from
Type
kind
on
Migration?
to
Schema
to
Type
transform
Properties
Readonly
~@dxos/echo/
Migration
"~@dxos/echo/Migration"
:
"~@dxos/echo/Migration"
from
Schema
fromSchema
:
Codec
<
any
,
any
>
from
Type
fromType
:
URI
.
URI
Readonly
kind
kind
:
"object"
Optional
on
Migration
onMigration
?:
(
params
:
OnMigrateProps
<
any
,
any
>
)
=>
Promise
<
void
>
to
Schema
toSchema
:
Codec
<
any
,
any
>
to
Type
toType
:
URI
.
URI
transform
transform
:
(
from
:
unknown
,
context
:
ObjectMigrationContext
)
=>
Promise
<
unknown
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
~@dxos/echo/
Migration
from
Schema
from
Type
kind
on
Migration
to
Schema
to
Type
transform
@dxos/echo
Loading...
Definition of a migration from one object schema version to another.