mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat(editor): add provider for base adapter (#11169)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { ServiceProvider } from '@blocksuite/global/di';
|
||||
import { BlockSuiteError } from '@blocksuite/global/exceptions';
|
||||
|
||||
import {
|
||||
@@ -73,7 +74,10 @@ export abstract class BaseAdapter<AdapterTarget = unknown> {
|
||||
return this.job.adapterConfigs;
|
||||
}
|
||||
|
||||
constructor(job: Transformer) {
|
||||
constructor(
|
||||
job: Transformer,
|
||||
readonly provider: ServiceProvider
|
||||
) {
|
||||
this.job = job;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user