style: add ban-ts-comment rule (#2738)

This commit is contained in:
LongYinan authored and GitHub committed 2023-06-09 11:55:23 +08:00
1 parent c5a295a87b
commit 2e975e79dd
16 files changed
+139 -91

No files matched your search

@@ -28,7 +28,6 @@ export const PurePopper = (props: PurePopperProps) => {
} = props;
const [arrowRef, setArrowRef] = useState<HTMLElement | null>();
// @ts-ignore
return (
<BasicStyledPopper
zIndex={zIndex}
+12 -5
View File
@@ -182,12 +182,19 @@ const createSQLiteProvider = (
const connect = () => {
logger.info('connecting sqlite provider', blockSuiteWorkspace.id);
blockSuiteWorkspace.doc.on('update', handleUpdate);
// @ts-expect-error
unsubscribe = events.db.onExternalUpdate(({ update, workspaceId }) => {
if (workspaceId === blockSuiteWorkspace.id) {
Y.applyUpdate(blockSuiteWorkspace.doc, update, sqliteOrigin);
unsubscribe = events.db.onExternalUpdate(
({
update,
workspaceId,
}: {
workspaceId: string;
update: Uint8Array;
}) => {
if (workspaceId === blockSuiteWorkspace.id) {
Y.applyUpdate(blockSuiteWorkspace.doc, update, sqliteOrigin);
}
}
});
);
connected = true;
logger.info('connecting sqlite done', blockSuiteWorkspace.id);
};
+1 -2
View File
@@ -10,7 +10,6 @@
{ "path": "../y-indexeddb" },
{ "path": "../env" },
{ "path": "../debug" },
{ "path": "../hooks" },
{ "path": "../../apps/electron" }
{ "path": "../hooks" }
]
}