mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	chore(client/ts): port services/i18n
This commit is contained in:
		
							parent
							
								
									5d5a68170a
								
							
						
					
					
						commit
						47aed18ff4
					
				
							
								
								
									
										23
									
								
								src/public/app/types.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								src/public/app/types.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -1,4 +1,7 @@ | |||||||
| import FNote from "./entities/fnote"; | import type FNote from "./entities/fnote"; | ||||||
|  | import type { BackendModule, i18n } from "i18next"; | ||||||
|  | import type { Froca } from "./services/froca-interface"; | ||||||
|  | import type { HttpBackendOptions } from "i18next-http-backend"; | ||||||
| 
 | 
 | ||||||
| interface ElectronProcess { | interface ElectronProcess { | ||||||
|     type: string; |     type: string; | ||||||
| @ -30,6 +33,7 @@ interface CustomGlobals { | |||||||
|     isMainWindow: boolean; |     isMainWindow: boolean; | ||||||
|     maxEntityChangeIdAtLoad: number; |     maxEntityChangeIdAtLoad: number; | ||||||
|     maxEntityChangeSyncIdAtLoad: number; |     maxEntityChangeSyncIdAtLoad: number; | ||||||
|  |     assetPath: string; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type RequireMethod = (moduleName: string) => any; | type RequireMethod = (moduleName: string) => any; | ||||||
| @ -44,12 +48,17 @@ declare global { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     interface JQuery { |     interface JQuery { | ||||||
|         autocomplete: (action: "close") => void; |         // autocomplete: (action: "close") => void;
 | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     declare var logError: (message: string) => void; |     var logError: (message: string) => void; | ||||||
|     declare var logInfo: (message: string) => void; |     var logInfo: (message: string) => void; | ||||||
|     declare var glob: CustomGlobals; |     var glob: CustomGlobals; | ||||||
|     declare var require: RequireMethod; |     var require: RequireMethod; | ||||||
|     declare var __non_webpack_require__: RequireMethod | undefined; |     var __non_webpack_require__: RequireMethod | undefined; | ||||||
|  | 
 | ||||||
|  |     // Libraries
 | ||||||
|  |     // Replace once library loader is replaced with webpack.
 | ||||||
|  |     var i18next: i18n; | ||||||
|  |     var i18nextHttpBackend: BackendModule<HttpBackendOptions>; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran