export function * generatorStub < YieldType , ReturnType , NextType = unknown > ( callback = ( ) => null , returnValue ? ) { yield undefined ; callback ( ) ; return returnValue ; } export function * errorGeneratorStub < YieldType , ReturnType , NextType = unknown > ( error ) { yield undefined ; throw error ; }