mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 23:56:36 +08:00
build: enhance tsconfig type check (#2732)
This commit is contained in:
@@ -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