MCPcopy
hub / github.com/CopilotKit/CopilotKit / isComponentType

Function isComponentType

packages/angular/src/lib/slots/slot.utils.ts:145–148  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

143 * Simplified check - rely on try/catch for actual validation.
144 */
145export function isComponentType(value: any): boolean {
146 // Arrow functions and regular functions without a prototype are not components
147 return typeof value === "function" && !!value.prototype;
148}
149
150/**
151 * Checks if a value is a valid slot value.

Callers 5

slot.utils.spec.tsFile · 0.90
renderSlotFunction · 0.85
isSlotValueFunction · 0.85
normalizeSlotValueFunction · 0.85
provideSlotsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…