(value, optionName)
| 52 | }; |
| 53 | |
| 54 | const getTransformObjectType = (value, optionName) => { |
| 55 | if (isDuplexStream(value.transform, {checkOpen: false})) { |
| 56 | return getDuplexType(value, optionName); |
| 57 | } |
| 58 | |
| 59 | if (isTransformStream(value.transform)) { |
| 60 | return getTransformStreamType(value, optionName); |
| 61 | } |
| 62 | |
| 63 | return getGeneratorObjectType(value, optionName); |
| 64 | }; |
| 65 | |
| 66 | const getDuplexType = (value, optionName) => { |
| 67 | validateNonGeneratorType(value, optionName, 'Duplex stream'); |
no test coverage detected