MCPcopy Create free account
hub / github.com/ProNextJS/declarative-routing / parseNumber

Function parseNumber

assets/shared/utils.ts:160–163  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

158}
159
160function parseNumber(str: string): ParsedData<number> {
161 const num = +str;
162 return isNaN(num) ? { error: `${str} is NaN` } : { data: num };
163}
164
165function parseBoolean(str: string): ParsedData<boolean> {
166 switch (str) {

Callers 1

parseValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected