From 39a5ecd47afa4a395fccf0d047f9423d0baaaf78 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]