(core) Convert CopySelection and tableUtil to typescript

Summary:
- This should make these easier to work with and make changes to.
- Removes one unused method.

Test Plan: No changes of behavior, existing tests should pass.

Reviewers: alexmojaki

Reviewed By: alexmojaki

Differential Revision: https://phab.getgrist.com/D3091
This commit is contained in:
Dmitry S
2021-10-25 17:59:13 -04:00
parent f7c9919120
commit 65e743931b
6 changed files with 122 additions and 142 deletions

View File

@@ -145,15 +145,6 @@ declare module "app/client/components/commands" {
export const createGroup: any;
}
declare module "app/client/lib/tableUtil" {
import {KoArray} from 'app/client/lib/koArray';
import {ViewFieldRec} from 'app/client/models/DocModel';
function insertPositions(lowerPos: number|null, upperPos: number|null, numInserts: number): number[];
function fieldInsertPositions(viewFields: KoArray<ViewFieldRec>, index: number, numInserts: number): number[];
}
declare module "app/client/models/BaseRowModel" {
import {Disposable} from 'app/client/lib/dispose';
import * as TableModel from 'app/client/models/TableModel';