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
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
Returns
void
Defined in
packages/affine/shared/dist/utils/spec/spec-provider.d.ts:10
getSpec()
getSpec(
id
):SpecBuilder
Parameters
id
string
Returns
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
Returns
void
Defined in
packages/affine/shared/dist/utils/spec/spec-provider.d.ts:13
getInstance()
static
getInstance():SpecProvider
Returns
Defined in
packages/affine/shared/dist/utils/spec/spec-provider.d.ts:7