mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-28 07:51:31 +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;
|
||||
}
|
||||
|
||||
async runExclusively(cb: () => Promise<any>) {
|
||||
async runExclusively<T>(cb: () => Promise<T>) {
|
||||
const unlock = await this.lock();
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user