build: enhance tsconfig type check (#2732)

This commit is contained in:
Himself65
2023-06-09 01:42:58 +08:00
committed by GitHub
parent fc9a9f479b
commit b383ce36cd
34 changed files with 111 additions and 68 deletions

View File

@@ -30,6 +30,7 @@ function useMouseOffset() {
el.removeEventListener('mouseleave', onMouseLeave);
};
}
return () => {};
}, []);
return [offset, outside, ref] as const;

View File

@@ -80,6 +80,7 @@ const BlockSuiteEditorImpl = (props: EditorProps): ReactElement => {
.forEach(dispose => dispose());
};
}
return () => {};
}, [editor, editor.page, page, onLoad]);
const ref = useRef<HTMLDivElement>(null);

View File

@@ -13,4 +13,5 @@ previewBlockIdAtom.onMount = set => {
window.removeEventListener('affine.embed-block-db-click', callback);
};
}
return () => {};
};

View File

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

View File

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

View File

@@ -1,2 +1,4 @@
export * from './disable-public-link';
export * from './share-menu';
export * from './share-workspace';
export * from './styles';

View File

@@ -33,4 +33,5 @@ export function findNode<RenderProps>(
}
}
}
return undefined;
}