mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-28 16:01:32 +08:00
refactor(types): unnecessary any
This commit is contained in:
parent
d0948727df
commit
68f212a679
@ -16,7 +16,7 @@ export default class Mutex {
|
|||||||
return newPromise;
|
return newPromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
async runExclusively(cb: () => Promise<any>) {
|
async runExclusively<T>(cb: () => Promise<T>) {
|
||||||
const unlock = await this.lock();
|
const unlock = await this.lock();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user