mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 02:37:17 +08:00
chore(monorepo/client): type error in library loader
This commit is contained in:
parent
dd3982e24c
commit
059e617839
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ async function requireLibrary(library: Library) {
|
|||
}
|
||||
}
|
||||
|
||||
async function unwrapValue<T>(value: T | (() => T) | Promise<(() => T)>) {
|
||||
async function unwrapValue<T>(value: T | (() => T) | Promise<T>) {
|
||||
if (value && typeof value === "object" && "then" in value) {
|
||||
return (await (value as Promise<() => T>))();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue