(value, optionName, typeName)
| 80 | }; |
| 81 | |
| 82 | const checkUndefinedOption = (value, optionName, typeName) => { |
| 83 | if (value !== undefined) { |
| 84 | throw new TypeError(`The \`${optionName}\` option can only be defined when using a generator, not a ${typeName}.`); |
| 85 | } |
| 86 | }; |
| 87 | |
| 88 | const getGeneratorObjectType = ({transform, final, binary, objectMode}, optionName) => { |
| 89 | if (transform !== undefined && !isGenerator(transform)) { |
no outgoing calls
no test coverage detected