mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +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 { 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"; | import type { KeyBinding } from "@codemirror/view"; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -19,8 +19,8 @@ const smartIndentWithTab: KeyBinding[] = [ | |||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             const { selection } = state; |             const { selection } = state; | ||||||
|             const changes = []; |             const changes: ChangeSpec[] = []; | ||||||
|             const newSelections = []; |             const newSelections: SelectionRange[] = []; | ||||||
| 
 | 
 | ||||||
|             // Step 1: Handle non-empty selections → replace with tab
 |             // Step 1: Handle non-empty selections → replace with tab
 | ||||||
|             if (selection.ranges.some(range => !range.empty)) { |             if (selection.ranges.some(range => !range.empty)) { | ||||||
|  | |||||||
| @ -23,6 +23,6 @@ | |||||||
|     "src/**/*.spec.js", |     "src/**/*.spec.js", | ||||||
|     "src/**/*.test.jsx", |     "src/**/*.test.jsx", | ||||||
|     "src/**/*.spec.jsx", |     "src/**/*.spec.jsx", | ||||||
|     "src/**/*.d.ts" |     "src/**/*.ts" | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran