build: enhance tsconfig type check (#2732)

(cherry picked from commit b383ce36cd)
This commit is contained in:
Himself65
2023-06-09 01:42:58 +08:00
committed by himself65
parent d9c67e4723
commit 62caa555de
34 changed files with 111 additions and 68 deletions

View File

@@ -75,6 +75,7 @@ const signInWithElectron = async (firebaseAuth: FirebaseAuth) => {
const user = await signInWithCredential(firebaseAuth, credential);
return await user.user.getIdToken();
}
return void 0;
};
export const clearLoginStorage = () => {

View File

@@ -48,6 +48,7 @@ rootCurrentWorkspaceIdAtom.onMount = set => {
Router.events.off('routeChangeStart', callback);
};
}
return () => {};
};
export const rootCurrentPageIdAtom = atom<string | null>(null);
@@ -68,6 +69,7 @@ rootCurrentPageIdAtom.onMount = set => {
Router.events.off('routeChangeStart', callback);
};
}
return () => {};
};
// current editor atom, each app should have only one editor in the same time

View File

@@ -101,7 +101,7 @@ export class CallbackSet extends Set<() => void> {
this.#ready = v;
}
add(cb: () => void) {
override add(cb: () => void) {
if (this.ready) {
cb();
return this;
@@ -112,7 +112,7 @@ export class CallbackSet extends Set<() => void> {
return super.add(cb);
}
delete(cb: () => void) {
override delete(cb: () => void) {
if (this.has(cb)) {
return super.delete(cb);
}