Skip to content

BlockSuite API Documentation / @blocksuite/blocks / SpecProvider

Class: SpecProvider

Properties

instance

static instance: SpecProvider

Defined in

packages/affine/shared/dist/utils/spec/spec-provider.d.ts:4

Methods

addSpec()

addSpec(id, spec): void

Parameters

id: string

spec: ExtensionType[]

Returns

void

Defined in

packages/affine/shared/dist/utils/spec/spec-provider.d.ts:8


clearSpec()

clearSpec(id): void

Parameters

id: string

Returns

void

Defined in

packages/affine/shared/dist/utils/spec/spec-provider.d.ts:9


extendSpec()

extendSpec(id, newSpec): void

Parameters

id: string

newSpec: ExtensionType[]

Returns

void

Defined in

packages/affine/shared/dist/utils/spec/spec-provider.d.ts:10


getSpec()

getSpec(id): SpecBuilder

Parameters

id: string

Returns

SpecBuilder

Defined in

packages/affine/shared/dist/utils/spec/spec-provider.d.ts:11


hasSpec()

hasSpec(id): boolean

Parameters

id: string

Returns

boolean

Defined in

packages/affine/shared/dist/utils/spec/spec-provider.d.ts:12


omitSpec()

omitSpec(id, targetSpec): void

Parameters

id: string

targetSpec: ExtensionType

Returns

void

Defined in

packages/affine/shared/dist/utils/spec/spec-provider.d.ts:13


getInstance()

static getInstance(): SpecProvider

Returns

SpecProvider

Defined in

packages/affine/shared/dist/utils/spec/spec-provider.d.ts:7