From 0dcbce5a0df12f5289ddbd9836c9916b409a81e5 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 9 Mar 2026 11:12:39 +0530 Subject: [PATCH] fix: add type hints to constants --- ui/src/app/tools/[toolUuid]/page.tsx | 4 ++-- ui/src/constants/documentation.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/src/app/tools/[toolUuid]/page.tsx b/ui/src/app/tools/[toolUuid]/page.tsx index 9c57e56..17a9b3d 100644 --- a/ui/src/app/tools/[toolUuid]/page.tsx +++ b/ui/src/app/tools/[toolUuid]/page.tsx @@ -440,9 +440,9 @@ const data = await response.json();`; View Code )} - {TOOL_DOCUMENTATION_URLS[tool.category as keyof typeof TOOL_DOCUMENTATION_URLS] && ( + {TOOL_DOCUMENTATION_URLS[tool.category] && ( = { startCall: `${DOCS_BASE}/voice-agent/start-call`, endCall: `${DOCS_BASE}/voice-agent/end-call`, agent: `${DOCS_BASE}/voice-agent/agent`, @@ -8,10 +8,10 @@ export const NODE_DOCUMENTATION_URLS = { apiTrigger: `${DOCS_BASE}/voice-agent/api-trigger`, webhook: `${DOCS_BASE}/voice-agent/webhook`, qaAnalysis: `${DOCS_BASE}/getting-started`, -} as const; +}; -export const TOOL_DOCUMENTATION_URLS = { +export const TOOL_DOCUMENTATION_URLS: Record = { http_api: `${DOCS_BASE}/voice-agent/tools/http-api`, end_call: `${DOCS_BASE}/voice-agent/tools/end-call`, transfer_call: `${DOCS_BASE}/voice-agent/tools/call-transfer`, -} as const; +};