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
LifeCycleWatcherBlockServiceDNDAPIExtensionDocModeServiceEmbedOptionServiceOverlayThemeServiceOverlay
Constructors
new Extension()
new Extension():
Extension
Returns
Methods
setup()
staticsetup(_di):void
Parameters
_di
Container
Returns
void
Defined in
packages/framework/block-std/src/extension/extension.ts:10