BlockSuite API Documentation / @blocksuite/blocks / SpecBuilder
Class: SpecBuilder
Constructors
new SpecBuilder()
new SpecBuilder(
spec
):SpecBuilder
Parameters
• spec: BlockSpec
<string
, BlockService
<BlockModel
<object
>>>[]
Returns
Source
packages/blocks/src/specs/utils/spec-builder.ts:6
Properties
_value
private
readonly
_value:BlockSpec
<string
,BlockService
<BlockModel
<object
>>>[]
Source
packages/blocks/src/specs/utils/spec-builder.ts:5
Accessors
value
get
value():BlockSpec
<string
,BlockService
<BlockModel
<object
>>>[]
Returns
BlockSpec
<string
, BlockService
<BlockModel
<object
>>>[]
Source
packages/blocks/src/specs/utils/spec-builder.ts:10
Methods
setup()
setup(
flavour
,setup
):void
Parameters
• flavour: Flavour
• setup
Returns
void
Source
packages/blocks/src/specs/utils/spec-builder.ts:14