mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
18 lines
498 B
TypeScript
18 lines
498 B
TypeScript
import type { Container } from '@blocksuite/global/di';
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
export abstract class Extension {
|
|
static setup(_di: Container): void {
|
|
// do nothing
|
|
}
|
|
}
|
|
|
|
export interface ExtensionType {
|
|
setup(di: Container): void;
|
|
}
|