(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:
Paul Fitzpatrick 2020-09-16 09:12:40 -04:00
parent 9d6637458e
commit 2087ae5f67

View File

@ -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];
}