MCPcopy Create free account
hub / github.com/axe-api/axe-api / parsePage

Method parsePage

packages/axe-api/src/Services/QueryService.ts:272–284  ·  view source on GitHub ↗
(content: any)

Source from the content-addressed store, hash-verified

270 }
271
272 private parsePage(content: any) {
273 const value = parseInt(content);
274
275 if (isNaN(value)) {
276 return 1;
277 }
278
279 if (value <= 0) {
280 return 1;
281 }
282
283 return value;
284 }
285
286 private parsePerPage(content: any) {
287 const value = parseInt(

Callers 1

parseSectionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected