MCPcopy
hub / github.com/microsoft/SandDance / getText

Function getText

packages/sanddance-explorer/src/controls/searchTerm.tsx:141–144  ·  view source on GitHub ↗
(ex: InputSearchExpression)

Source from the content-addressed store, hash-verified

139}
140
141export function getText(ex: InputSearchExpression) {
142 if (ex.operator === 'isnullorEmpty') return '';
143 return (typeof ex.value === 'string') ? ex.value : ex.value == null ? '' : ex.value.toString();
144}
145
146export function SearchTerm(props: Props) {
147 const ex = props.searchExpression;

Callers 3

validateExpressionFunction · 0.90
SearchTermFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected