Skip to content

BlockSuite API Documentation / @blocksuite/block-std / Extension

Class: abstract Extension

Generic extension. Extensions are used to set up the dependency injection container. In most cases, you won't need to use this class directly. We provide helper classes like CommandExtension and BlockViewExtension to make it easier to create extensions.

Extended by

Constructors

new Extension()

new Extension(): Extension

Returns

Extension

Methods

setup()

static setup(_di): void

Parameters

_di: Container

Returns

void

Defined in

packages/framework/block-std/src/extension/extension.ts:10