You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					17 lines
				
				542 B
			
		
		
			
		
	
	
					17 lines
				
				542 B
			| 
								 
											3 years ago
										 
									 | 
							
								declare type RepositionCursorProps = {
							 | 
						||
| 
								 | 
							
								    selectionStart?: number | null;
							 | 
						||
| 
								 | 
							
								    value: string;
							 | 
						||
| 
								 | 
							
								    lastKeyStroke: string | null;
							 | 
						||
| 
								 | 
							
								    stateValue?: string;
							 | 
						||
| 
								 | 
							
								    groupSeparator?: string;
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Based on the last key stroke and the cursor position, update the value
							 | 
						||
| 
								 | 
							
								 * and reposition the cursor to the right place
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								export declare const repositionCursor: ({ selectionStart, value, lastKeyStroke, stateValue, groupSeparator, }: RepositionCursorProps) => {
							 | 
						||
| 
								 | 
							
								    modifiedValue: string;
							 | 
						||
| 
								 | 
							
								    cursorPosition: number | null | undefined;
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								export {};
							 |