From 50207d0de87bdebe6bb9dad9d120d50d38c578ed Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:47:00 +0000 Subject: [PATCH] Set explicit type for `emsg` --- .../jupyter-ai/src/components/settings/existing-api-keys.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jupyter-ai/src/components/settings/existing-api-keys.tsx b/packages/jupyter-ai/src/components/settings/existing-api-keys.tsx index 468f26796..b22c731b9 100644 --- a/packages/jupyter-ai/src/components/settings/existing-api-keys.tsx +++ b/packages/jupyter-ai/src/components/settings/existing-api-keys.tsx @@ -113,7 +113,7 @@ function ExistingApiKey(props: ExistingApiKeyProps) { }, [input]); const onError = useCallback( - emsg => { + (emsg: string) => { props.alert.show('error', emsg); }, [props.alert]