From 8a3495b81b94d55e886e9f0bc3a743904d7c25f9 Mon Sep 17 00:00:00 2001 From: Baptiste Leproux Date: Mon, 31 Oct 2022 17:40:57 +0100 Subject: [PATCH 1/5] fix(types): add missing field in command palette type --- src/runtime/types/command-palette.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/types/command-palette.d.ts b/src/runtime/types/command-palette.d.ts index b62690738c..b787fe0c60 100644 --- a/src/runtime/types/command-palette.d.ts +++ b/src/runtime/types/command-palette.d.ts @@ -3,6 +3,7 @@ import type { FuseSortFunctionMatch, FuseSortFunctionMatchList } from 'fuse.js' import type { Avatar } from './avatar' export interface Command { id: string | number + label: string prefix?: string suffix?: string icon?: string @@ -18,6 +19,7 @@ export interface Command { export interface Group { key: string + lbel: string active?: string inactive?: string commands: Command[] From 6d95283659a5ce6750f34420c212ec2756ea43df Mon Sep 17 00:00:00 2001 From: Baptiste Leproux Date: Mon, 31 Oct 2022 17:41:44 +0100 Subject: [PATCH 2/5] typo --- src/runtime/types/command-palette.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/types/command-palette.d.ts b/src/runtime/types/command-palette.d.ts index b787fe0c60..ecf33d9316 100644 --- a/src/runtime/types/command-palette.d.ts +++ b/src/runtime/types/command-palette.d.ts @@ -19,7 +19,7 @@ export interface Command { export interface Group { key: string - lbel: string + label: string active?: string inactive?: string commands: Command[] From d98ac52627a66dbe6c915f43f6f49f4ddb32b569 Mon Sep 17 00:00:00 2001 From: Baptiste Leproux Date: Mon, 31 Oct 2022 17:42:09 +0100 Subject: [PATCH 3/5] optionnal --- src/runtime/types/command-palette.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/types/command-palette.d.ts b/src/runtime/types/command-palette.d.ts index ecf33d9316..12b78ec24a 100644 --- a/src/runtime/types/command-palette.d.ts +++ b/src/runtime/types/command-palette.d.ts @@ -3,7 +3,7 @@ import type { FuseSortFunctionMatch, FuseSortFunctionMatchList } from 'fuse.js' import type { Avatar } from './avatar' export interface Command { id: string | number - label: string + label?: string prefix?: string suffix?: string icon?: string @@ -19,7 +19,7 @@ export interface Command { export interface Group { key: string - label: string + label?: string active?: string inactive?: string commands: Command[] From d30e370a82ad3971b7d5ff3120ca6586d391b6c4 Mon Sep 17 00:00:00 2001 From: Baptiste Leproux Date: Wed, 2 Nov 2022 15:55:27 +0100 Subject: [PATCH 4/5] up --- src/runtime/types/command-palette.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/types/command-palette.d.ts b/src/runtime/types/command-palette.d.ts index 12b78ec24a..00a4f614d5 100644 --- a/src/runtime/types/command-palette.d.ts +++ b/src/runtime/types/command-palette.d.ts @@ -19,9 +19,9 @@ export interface Command { export interface Group { key: string - label?: string active?: string inactive?: string commands: Command[] options?: Partial> + [key: string]: any } From d466611da544bd5cbfbca64b80005c420ec3cd08 Mon Sep 17 00:00:00 2001 From: Baptiste Leproux Date: Wed, 2 Nov 2022 15:56:06 +0100 Subject: [PATCH 5/5] up --- src/runtime/types/command-palette.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/types/command-palette.d.ts b/src/runtime/types/command-palette.d.ts index 00a4f614d5..2a5af82cb5 100644 --- a/src/runtime/types/command-palette.d.ts +++ b/src/runtime/types/command-palette.d.ts @@ -3,7 +3,6 @@ import type { FuseSortFunctionMatch, FuseSortFunctionMatchList } from 'fuse.js' import type { Avatar } from './avatar' export interface Command { id: string | number - label?: string prefix?: string suffix?: string icon?: string @@ -15,6 +14,7 @@ export interface Command { group?: string score?: number matches?: (FuseSortFunctionMatch | FuseSortFunctionMatchList)[] + [key: string]: any } export interface Group {