mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 23:07:02 +08:00
refactor(editor): cleanup ts-expect-error (#9369)
This commit is contained in:
@@ -14,7 +14,7 @@ const env =
|
||||
: {};
|
||||
const importIdentifier = '__ $BLOCKSUITE_EDITOR$ __';
|
||||
|
||||
// @ts-expect-error FIXME: ts error
|
||||
// @ts-expect-error check global identifier
|
||||
if (env[importIdentifier] === true) {
|
||||
// https://github.com/yjs/yjs/issues/438
|
||||
console.error(
|
||||
@@ -22,5 +22,5 @@ if (env[importIdentifier] === true) {
|
||||
);
|
||||
}
|
||||
|
||||
// @ts-expect-error FIXME: ts error
|
||||
// @ts-expect-error set global identifier
|
||||
env[importIdentifier] = true;
|
||||
|
||||
Reference in New Issue
Block a user