mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
build: enhance tsconfig type check (#2732)
(cherry picked from commit b383ce36cd)
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user