use type instead of interface

This commit is contained in:
Peter Fajdiga
2023-08-29 21:03:32 +02:00
parent b15bb85037
commit 10718bc2c7
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
interface KeyBinding {
type KeyBinding = {
name: string;
description: string;
comment?: string;
@@ -6,7 +6,7 @@ interface KeyBinding {
action: string;
}
interface NumKeyBinding {
type NumKeyBinding = {
name: string;
description: string;
comment?: string;

View File

@@ -1,4 +1,4 @@
interface KeyBinding {
type KeyBinding = {
name: string;
description: string;
comment?: string;
@@ -6,7 +6,7 @@ interface KeyBinding {
action: keyof ReturnType<typeof Actions.init>;
}
interface NumKeyBinding {
type NumKeyBinding = {
name: string;
description: string;
comment?: string;