Skip to content

BlockSuite API Documentation / @blocksuite/blocks / SpecProvider

Class: SpecProvider

Properties

instance

static instance: SpecProvider

Defined in

packages/blocks/src/_specs/utils/spec-provider.ts:8

Methods

addSpec()

addSpec(id, spec): void

Parameters

id: string

spec: ExtensionType[]

Returns

void

Defined in

packages/blocks/src/_specs/utils/spec-provider.ts:21


clearSpec()

clearSpec(id): void

Parameters

id: string

Returns

void

Defined in

packages/blocks/src/_specs/utils/spec-provider.ts:27


extendSpec()

extendSpec(id, newSpec): void

Parameters

id: string

newSpec: ExtensionType[]

Returns

void

Defined in

packages/blocks/src/_specs/utils/spec-provider.ts:31


getSpec()

getSpec(id): SpecBuilder

Parameters

id: string

Returns

SpecBuilder

Defined in

packages/blocks/src/_specs/utils/spec-provider.ts:40


hasSpec()

hasSpec(id): boolean

Parameters

id: string

Returns

boolean

Defined in

packages/blocks/src/_specs/utils/spec-provider.ts:46


getInstance()

static getInstance(): SpecProvider

Returns

SpecProvider

Defined in

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