Skip to content

BlockSuite API Documentation / @blocksuite/blocks / SpecBuilder

Class: SpecBuilder

Constructors

new SpecBuilder()

new SpecBuilder(spec): SpecBuilder

Parameters

spec: ExtensionType[]

Returns

SpecBuilder

Defined in

packages/blocks/src/_specs/utils/spec-builder.ts:10

Accessors

value

get value(): ExtensionType[]

Returns

ExtensionType[]

Defined in

packages/blocks/src/_specs/utils/spec-builder.ts:6

Methods

extend()

extend(extensions): void

Parameters

extensions: ExtensionType[]

Returns

void

Defined in

packages/blocks/src/_specs/utils/spec-builder.ts:14