PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` declare namespace pPipe { type UnaryFunction = ( value: ValueType ) => ReturnType | PromiseLike; type Pipeline = ( value?: ValueType ) => Promise; } /** Compose promise-returning & async functions into a reusable pipeline. @param ...input - Iterated over sequentially when returned `function` is called. @returns The `input` functions are applied from left to right. @example ``` import pPipe = require('p-pipe'); const addUnicorn = async string => `${string} Unicorn`; const addRainbow = async string => `${string} Rainbow`; const pipeline = pPipe(addUnicorn, addRainbow); (async () => { console.log(await pipeline('❤️')); //=> '❤️ Unicorn Rainbow' })(); ``` */ declare function pPipe( f1: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ResultValue5, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction, f6: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ResultValue5, ResultValue6, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction, f6: pPipe.UnaryFunction, f7: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ResultValue5, ResultValue6, ResultValue7, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction, f6: pPipe.UnaryFunction, f7: pPipe.UnaryFunction, f8: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ResultValue5, ResultValue6, ResultValue7, ResultValue8, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction, f6: pPipe.UnaryFunction, f7: pPipe.UnaryFunction, f8: pPipe.UnaryFunction, f9: pPipe.UnaryFunction ): pPipe.Pipeline; // Fallbacks if more than 9 functions are passed as input (not type-safe). declare function pPipe( ...functions: (pPipe.UnaryFunction)[] ): pPipe.Pipeline; export = pPipe;