MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isRecord

Function isRecord

packages/web/src/features/chat/mcpOAuthDraft.ts:28–30  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

26}
27
28function isRecord(value: unknown): value is Record<string, unknown> {
29 return typeof value === 'object' && value !== null;
30}
31
32function isCustomText(value: unknown): value is CustomText {
33 return isRecord(value) && typeof value.text === 'string';

Callers 4

isCustomTextFunction · 0.70
isMentionElementFunction · 0.70
isParagraphElementFunction · 0.70
isMcpOAuthDraftFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected