MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / asFailedOperation

Function asFailedOperation

src/scripts/stringUtils.ts:89–94  ·  view source on GitHub ↗
(obj: T)

Source from the content-addressed store, hash-verified

87 }
88
89 function asFailedOperation<T>(obj: T): { status: OperationResult, result: T } {
90 return {
91 status: OperationResult.Failed,
92 result: obj
93 };
94 }
95
96 export function countPageRange(text: string): number {
97 let operation = parsePageRange(text);

Callers 1

parsePageRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected