(options, context)
| 13900 | return { preventCancel: Boolean(preventCancel) }; |
| 13901 | } |
| 13902 | function convertPipeOptions(options, context) { |
| 13903 | assertDictionary(options, context); |
| 13904 | const preventAbort = options === null || options === void 0 ? void 0 : options.preventAbort; |
| 13905 | const preventCancel = options === null || options === void 0 ? void 0 : options.preventCancel; |
| 13906 | const preventClose = options === null || options === void 0 ? void 0 : options.preventClose; |
| 13907 | const signal = options === null || options === void 0 ? void 0 : options.signal; |
| 13908 | if (signal !== void 0) { |
| 13909 | assertAbortSignal(signal, `${context} has member 'signal' that`); |
| 13910 | } |
| 13911 | return { |
| 13912 | preventAbort: Boolean(preventAbort), |
| 13913 | preventCancel: Boolean(preventCancel), |
| 13914 | preventClose: Boolean(preventClose), |
| 13915 | signal |
| 13916 | }; |
| 13917 | } |
| 13918 | function assertAbortSignal(signal, context) { |
| 13919 | if (!isAbortSignal(signal)) { |
| 13920 | throw new TypeError(`${context} is not an AbortSignal.`); |
no test coverage detected
searching dependent graphs…