mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	chore(codemirror): fix type errors
This commit is contained in:
		
							parent
							
								
									44c502f9cc
								
							
						
					
					
						commit
						fe8e090b1b
					
				| @ -1,5 +1,5 @@ | ||||
| import { indentLess, indentMore } from "@codemirror/commands"; | ||||
| import { EditorSelection, EditorState, type ChangeSpec } from "@codemirror/state"; | ||||
| import { EditorSelection, EditorState, SelectionRange, type ChangeSpec } from "@codemirror/state"; | ||||
| import type { KeyBinding } from "@codemirror/view"; | ||||
| 
 | ||||
| /** | ||||
| @ -19,8 +19,8 @@ const smartIndentWithTab: KeyBinding[] = [ | ||||
|             } | ||||
| 
 | ||||
|             const { selection } = state; | ||||
|             const changes = []; | ||||
|             const newSelections = []; | ||||
|             const changes: ChangeSpec[] = []; | ||||
|             const newSelections: SelectionRange[] = []; | ||||
| 
 | ||||
|             // Step 1: Handle non-empty selections → replace with tab
 | ||||
|             if (selection.ranges.some(range => !range.empty)) { | ||||
|  | ||||
| @ -23,6 +23,6 @@ | ||||
|     "src/**/*.spec.js", | ||||
|     "src/**/*.test.jsx", | ||||
|     "src/**/*.spec.jsx", | ||||
|     "src/**/*.d.ts" | ||||
|     "src/**/*.ts" | ||||
|   ] | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran