mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor(editor): should not rely on doc collection type (#9501)
This commit is contained in:
6
packages/common/env/src/constant.ts
vendored
6
packages/common/env/src/constant.ts
vendored
@@ -1,7 +1,7 @@
|
||||
// This file should has not side effect
|
||||
// oxlint-disable-next-line
|
||||
// @ts-ignore FIXME: typecheck error
|
||||
import type { DocCollection } from '@blocksuite/affine/store';
|
||||
import type { Workspace } from '@blocksuite/affine/store';
|
||||
|
||||
declare global {
|
||||
// oxlint-disable-next-line no-var
|
||||
@@ -91,10 +91,10 @@ export const Messages = {
|
||||
};
|
||||
|
||||
export class PageNotFoundError extends TypeError {
|
||||
readonly docCollection: DocCollection;
|
||||
readonly docCollection: Workspace;
|
||||
readonly pageId: string;
|
||||
|
||||
constructor(docCollection: DocCollection, pageId: string) {
|
||||
constructor(docCollection: Workspace, pageId: string) {
|
||||
super();
|
||||
this.docCollection = docCollection;
|
||||
this.pageId = pageId;
|
||||
|
||||
Reference in New Issue
Block a user