mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
build: enhance tsconfig type check (#2732)
This commit is contained in:
@@ -30,6 +30,7 @@ function useMouseOffset() {
|
||||
el.removeEventListener('mouseleave', onMouseLeave);
|
||||
};
|
||||
}
|
||||
return () => {};
|
||||
}, []);
|
||||
|
||||
return [offset, outside, ref] as const;
|
||||
|
||||
@@ -80,6 +80,7 @@ const BlockSuiteEditorImpl = (props: EditorProps): ReactElement => {
|
||||
.forEach(dispose => dispose());
|
||||
};
|
||||
}
|
||||
return () => {};
|
||||
}, [editor, editor.page, page, onLoad]);
|
||||
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
|
||||
@@ -13,4 +13,5 @@ previewBlockIdAtom.onMount = set => {
|
||||
window.removeEventListener('affine.embed-block-db-click', callback);
|
||||
};
|
||||
}
|
||||
return () => {};
|
||||
};
|
||||
|
||||
@@ -183,6 +183,7 @@ function NotificationCard(props: NotificationCardProps): ReactElement {
|
||||
if (notification.undo) {
|
||||
return notification.undo();
|
||||
}
|
||||
return void 0;
|
||||
}, [notification]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -200,6 +201,7 @@ function NotificationCard(props: NotificationCardProps): ReactElement {
|
||||
h.filter(height => height.notificationKey !== notification.key)
|
||||
);
|
||||
}
|
||||
return () => {};
|
||||
}, [notification.key, setHeights]);
|
||||
return (
|
||||
<Toast.Root
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
export * from './all-page';
|
||||
export * from './components/favorite-tag';
|
||||
export * from './components/new-page-buttton';
|
||||
export * from './components/title-cell';
|
||||
export * from './filter';
|
||||
export * from './operation-cell';
|
||||
export * from './operation-menu-items';
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
export * from './disable-public-link';
|
||||
export * from './share-menu';
|
||||
export * from './share-workspace';
|
||||
export * from './styles';
|
||||
|
||||
@@ -33,4 +33,5 @@ export function findNode<RenderProps>(
|
||||
}
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user