MCPcopy Create free account
hub / github.com/sindresorhus/execa / getTransformObjectType

Function getTransformObjectType

lib/stdio/type.js:54–64  ·  view source on GitHub ↗
(value, optionName)

Source from the content-addressed store, hash-verified

52};
53
54const 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
66const getDuplexType = (value, optionName) => {
67 validateNonGeneratorType(value, optionName, 'Duplex stream');

Callers 1

getStdioItemTypeFunction · 0.85

Calls 4

getDuplexTypeFunction · 0.85
isTransformStreamFunction · 0.85
getTransformStreamTypeFunction · 0.85
getGeneratorObjectTypeFunction · 0.85

Tested by

no test coverage detected