mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	chore(monorepo/client): type error in library loader
This commit is contained in:
		
							parent
							
								
									dd3982e24c
								
							
						
					
					
						commit
						059e617839
					
				| @ -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) { |     if (value && typeof value === "object" && "then" in value) { | ||||||
|         return (await (value as Promise<() => T>))(); |         return (await (value as Promise<() => T>))(); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran