Apply lint rule @typescript-eslint/no-empty-object-type (#29159)
* Apply lint rule @typescript-eslint/no-empty-object-type To avoid the footgun that is https://www.totaltypescript.com/the-empty-object-type-in-typescript Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8cae1e9f5e
commit
7eb969bbc2
@@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
|
||||
Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
import { KeyboardEvent } from "react";
|
||||
import React from "react";
|
||||
|
||||
import { Part, CommandPartCreator, PartCreator } from "./parts";
|
||||
import DocumentPosition from "./position";
|
||||
@@ -33,7 +33,7 @@ export default class AutocompleteWrapperModel {
|
||||
private partCreator: PartCreator | CommandPartCreator,
|
||||
) {}
|
||||
|
||||
public onEscape(e: KeyboardEvent): void {
|
||||
public onEscape(e: KeyboardEvent | React.KeyboardEvent): void {
|
||||
this.getAutocompleterComponent()?.onEscape(e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user