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
+1
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 = () => {
+2
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
+2 -2
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);
}