Skip to content

Commit

Permalink
add some types
Browse files Browse the repository at this point in the history
  • Loading branch information
wafuwafu13 committed Feb 20, 2021
1 parent b0fdf26 commit 67cccf6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,17 @@ export namespace Ace {
toggleRecording(editor: Editor): void;
replay(editor: Editor): void;
addCommand(command: Command): void;
addCommands(command: Command): void;
addCommands(command: Command[]): void;
removeCommand(command: Command | string, keepCommand?: boolean): void;
removeCommands(command: Command[])
bindKey(key: string | { mac?: string, win?: string },
command: CommandLike,
position?: number): void;
bindKeys(keys: {[s: string]: Function}): void;
parseKeys(keyPart: string): {key: string, hashId: number};
findKeyCommand(hashId: number, keyString: string): string | undefined;
handleKeyboard(data: {}, hashId: number, keyString: string, keyCode: string | number): void | {command: string};
getStatusText(editor?: Editor, data: {}): string;
}

export interface VirtualRenderer extends OptionsProvider, EventEmitter {
Expand Down

0 comments on commit 67cccf6

Please sign in to comment.