MCPcopy Create free account
hub / github.com/astercloud/aster / isPropertyValue

Method isPropertyValue

ui/src/protocol/message-processor.ts:678–689  ·  view source on GitHub ↗

* Check if value is a PropertyValue

(value: unknown)

Source from the content-addressed store, hash-verified

676 * Check if value is a PropertyValue
677 */
678 private isPropertyValue(value: unknown): boolean {
679 if (typeof value !== 'object' || value === null) {
680 return false;
681 }
682 const obj = value as Record<string, unknown>;
683 return (
684 'literalString' in obj
685 || 'literalNumber' in obj
686 || 'literalBoolean' in obj
687 || 'path' in obj
688 );
689 }
690
691 /**
692 * Resolve a single PropertyValue

Callers 2

resolvePropsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected