From fdc1524f48273fb94f8f17d6e5fbb2aba7a8cb71 Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Tue, 14 Nov 2023 19:42:25 -0500 Subject: [PATCH] fix: state types --- src/lib/cmdk/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/cmdk/types.ts b/src/lib/cmdk/types.ts index 251b475..ea5225e 100644 --- a/src/lib/cmdk/types.ts +++ b/src/lib/cmdk/types.ts @@ -278,8 +278,8 @@ export type CommandIds = Record<'root' | 'label' | 'input' | 'list', string>; export type Context = { value: (id: string, value: string) => void; - item: (id: string, groupId: string | undefined) => void; - group: (id: string) => void; + item: (id: string, groupId: string | undefined) => () => void; + group: (id: string) => () => void; filter: () => boolean; label: string; commandEl: Writable;