mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-10 08:05:22 +02:00
fix: add type hints to constants
This commit is contained in:
parent
374ad6a6c6
commit
0dcbce5a0d
2 changed files with 6 additions and 6 deletions
|
|
@ -440,9 +440,9 @@ const data = await response.json();`;
|
|||
View Code
|
||||
</Button>
|
||||
)}
|
||||
{TOOL_DOCUMENTATION_URLS[tool.category as keyof typeof TOOL_DOCUMENTATION_URLS] && (
|
||||
{TOOL_DOCUMENTATION_URLS[tool.category] && (
|
||||
<a
|
||||
href={TOOL_DOCUMENTATION_URLS[tool.category as keyof typeof TOOL_DOCUMENTATION_URLS]}
|
||||
href={TOOL_DOCUMENTATION_URLS[tool.category]}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const DOCS_BASE = "https://docs.dograh.com";
|
||||
|
||||
export const NODE_DOCUMENTATION_URLS = {
|
||||
export const NODE_DOCUMENTATION_URLS: Record<string, string> = {
|
||||
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<string, string> = {
|
||||
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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue