BlockSuite API Documentation / @blocksuite/store / Utils / syncBlockProps
Function: syncBlockProps()
syncBlockProps(
schema
,model
,yBlock
,props
):void
Parameters
schema
model
{ children
: string
[]; flavour
: string
; parent
: string
[]; props
: (...args
) => Record
<string
, any
>; role
: "root"
| "hub"
| "content"
; toModel
: (...args
) => BlockModel
<object
, SignaledProps
<object
>>; } = ...
model.children
string
[] = ContentSchema
model.flavour
string
= FlavourSchema
model.parent
string
[] = ParentSchema
model.props
(...args
) => Record
<string
, any
> = ...
model.role
"root"
| "hub"
| "content"
= RoleSchema
model.toModel
(...args
) => BlockModel
<object
, SignaledProps
<object
>> = ...
transformer
(...args
) => BaseBlockTransformer
<object
> = ...
version
number
= ...
model
BlockModel
<object
, SignaledProps
<object
>>
yBlock
props
Partial
<BlockProps
>
Returns
void
Defined in
packages/framework/store/src/utils/utils.ts:11