MCPcopy Create free account
hub / github.com/chhoumann/quickadd / hasNumericType

Function hasNumericType

src/utils/valueSyntax.ts:202–210  ·  view source on GitHub ↗
(optionParts: string[], allowName: boolean)

Source from the content-addressed store, hash-verified

200}
201
202function hasNumericType(optionParts: string[], allowName: boolean): boolean {
203 const optionKeys = allowName ? NAMED_VALUE_OPTION_KEYS : VALUE_OPTION_KEYS;
204 return optionParts.some((part) => {
205 const parsed = parsePipeKeyValue(part.trim());
206 if (!parsed || parsed.key !== "type" || !optionKeys.has("type")) return false;
207 const value = parsed.value.trim().toLowerCase();
208 return value === "number" || value === "slider";
209 });
210}
211
212function parseOptions(
213 optionParts: string[],

Callers 1

parseOptionsFunction · 0.85

Calls 1

parsePipeKeyValueFunction · 0.90

Tested by

no test coverage detected