refactor(editor): cleanup ts-expect-error (#9369)

This commit is contained in:
Saul-Mirone
2024-12-27 05:14:23 +00:00
parent 908e3efd12
commit 2b27d62b0e
35 changed files with 84 additions and 90 deletions

View File

@@ -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;