mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	server-esm: Solve a few straightforward imports
This commit is contained in:
		
							parent
							
								
									5d3e54ee9c
								
							
						
					
					
						commit
						20c729e62b
					
				| @ -3,7 +3,7 @@ | ||||
|  * (like consistency checks) can use this mutex to make sure sync isn't currently running. | ||||
|  */ | ||||
| 
 | ||||
| const Mutex = require('async-mutex').Mutex; | ||||
| import { Mutex } from "async-mutex"; | ||||
| const instance = new Mutex(); | ||||
| 
 | ||||
| async function doExclusively<T>(func: () => T) { | ||||
|  | ||||
| @ -1,10 +1,9 @@ | ||||
| "use strict"; | ||||
| 
 | ||||
| import AbstractShacaEntity from "./abstract_shaca_entity"; | ||||
| import { SAttributeRow } from "./rows"; | ||||
| import SNote from "./snote.js"; | ||||
| 
 | ||||
| const AbstractShacaEntity = require('./abstract_shaca_entity'); | ||||
| 
 | ||||
| class SAttribute extends AbstractShacaEntity { | ||||
| 
 | ||||
|     attributeId: string; | ||||
|  | ||||
| @ -27,7 +27,7 @@ class SNote extends AbstractShacaEntity { | ||||
|     parentBranches: SBranch[]; | ||||
|     parents: SNote[]; | ||||
|     children: SNote[]; | ||||
|     private ownedAttributes: SAttribute[]; | ||||
|     ownedAttributes: SAttribute[]; | ||||
|     private __attributeCache: SAttribute[] | null; | ||||
|     private __inheritableAttributeCache: SAttribute[] | null; | ||||
|     targetRelations: SAttribute[]; | ||||
|  | ||||
| @ -8,7 +8,7 @@ export default class Shaca { | ||||
|     notes!: Record<string, SNote>; | ||||
|     branches!: Record<string, SBranch>; | ||||
|     childParentToBranch!: Record<string, SBranch>; | ||||
|     private attributes!: Record<string, SAttribute>; | ||||
|     attributes!: Record<string, SAttribute>; | ||||
|     attachments!: Record<string, SAttachment>; | ||||
|     aliasToNote!: Record<string, SNote>; | ||||
|     shareRootNote!: SNote | null; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran