(core) Migrating commands to typescript

Summary: Migrating commands and commandList to typescript

Test Plan: Existing

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3871
This commit is contained in:
Jarosław Sadziński
2023-04-21 13:31:10 +02:00
parent b13fb1d97e
commit b4c4a62a73
6 changed files with 481 additions and 371 deletions

View File

@@ -4,7 +4,6 @@ declare module "app/client/components/CodeEditorPanel";
declare module "app/client/components/DetailView";
declare module "app/client/components/DocConfigTab";
declare module "app/client/components/GridView";
declare module "app/client/components/commandList";
declare module "app/client/lib/Mousetrap";
declare module "app/client/lib/browserGlobals";
declare module "app/client/lib/dom";
@@ -108,24 +107,6 @@ declare module "app/client/components/ViewConfigTab" {
export = ViewConfigTab;
}
declare module "app/client/components/commands" {
export class Command {
public name: string;
public deprecated: boolean;
public desc: string;
public humanKeys: string[];
public keys: string[];
public getDesc(): string;
public getKeysDesc(): string;
public run(): any;
}
export type CommandsGroup = any;
export const init: any;
export const allCommands: any;
export const createGroup: any;
}
declare module "app/client/models/BaseRowModel" {
import {Disposable} from 'app/client/lib/dispose';
import TableModel from 'app/client/models/TableModel';