Skip to content

Build your personal knowledge base with Trilium Notes

refactor(types): unnecessary any

Elian Doran68f212a679d6
diff --git a/src/public/app/utils/mutex.ts b/src/public/app/utils/mutex.ts
index 197e2f1348..fb98ce4b60 100644
--- a/src/public/app/utils/mutex.ts
+++ b/src/public/app/utils/mutex.ts
@@ -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 {