mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 05:39:55 +01:00
refactor(types): unnecessary any
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user