MCPcopy
hub / github.com/di-sukharev/opencommit / convertQueuingStrategy

Function convertQueuingStrategy

out/cli.cjs:12054–12062  ·  view source on GitHub ↗
(init, context)

Source from the content-addressed store, hash-verified

12052 return size;
12053 }
12054 function convertQueuingStrategy(init, context) {
12055 assertDictionary(init, context);
12056 const highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark;
12057 const size = init === null || init === void 0 ? void 0 : init.size;
12058 return {
12059 highWaterMark: highWaterMark === void 0 ? void 0 : convertUnrestrictedDouble(highWaterMark),
12060 size: size === void 0 ? void 0 : convertQueuingStrategySize(size, `${context} has member 'size' that`)
12061 };
12062 }
12063 function convertQueuingStrategySize(fn, context) {
12064 assertFunction(fn, context);
12065 return (chunk) => convertUnrestrictedDouble(fn(chunk));

Callers 3

constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85

Calls 3

assertDictionaryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…