mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	(core) port DataRowModel and FieldBuilder to typescript
Summary: This ports two classes touched by data-diffing branch to typescript, so that the code is easier to understand and modify. DataRowModel is quite entangled with its base class, but porting it too got a little complicated. Test Plan: existing tests pass Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2611
This commit is contained in:
		
							parent
							
								
									9d6637458e
								
							
						
					
					
						commit
						2087ae5f67
					
				@ -170,7 +170,7 @@ const rightType: {[key in GristType]: (value: CellValue) => boolean} = {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function isRightType(type: string): undefined | ((value: CellValue) => boolean) {
 | 
					export function isRightType(type: string): undefined | ((value: CellValue, options?: any) => boolean) {
 | 
				
			||||||
  return rightType[type as GristType];
 | 
					  return rightType[type as GristType];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user