MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / convertReaderOptions

Function convertReaderOptions

out/cli.cjs:11835–11841  ·  view source on GitHub ↗
(options, context)

Source from the content-addressed store, hash-verified

11833 return new TypeError(`ReadableByteStreamController.prototype.${name} can only be used on a ReadableByteStreamController`);
11834 }
11835 function convertReaderOptions(options, context) {
11836 assertDictionary(options, context);
11837 const mode = options === null || options === void 0 ? void 0 : options.mode;
11838 return {
11839 mode: mode === void 0 ? void 0 : convertReadableStreamReaderMode(mode, `${context} has member 'mode' that`)
11840 };
11841 }
11842 function convertReadableStreamReaderMode(mode, context) {
11843 mode = `${mode}`;
11844 if (mode !== "byob") {

Callers 1

getReaderMethod · 0.85

Calls 2

assertDictionaryFunction · 0.85

Tested by

no test coverage detected