(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
pull/4/head
Paul Fitzpatrick 4 years ago
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];
}

Loading…
Cancel
Save