UNPKG

945 BSource Map (JSON)View Raw
1{"version":3,"file":"tap.js","sourceRoot":"","sources":["src/tap.ts"],"names":[],"mappings":";;AAAA,qCAAsF;AACtF,6CAAmD;AACnD,iCAAwC;AAExC;;;GAGG;AACU,QAAA,GAAG,GAAG,0BAAgB,CAAC,eAAe,CACjD,IAAI,yBAAe,CAAC,UAAC,EAAY,IAAK,OAAA,qBAAa,CAAC,EAAE,EAAE,CAAC,CAAC,EAApB,CAAoB,EAAE,IAAI,gCAAkB,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CACtF,CAAC;AACZ,cAHH,WAAG,CAGG;AACnB,kBAAe,WAAG,CAAC","sourcesContent":["import { DecoratorConfig, DecoratorFactory, BiTypedMethodDecorator } from './factory';\nimport { PreValueApplicator } from './applicators';\nimport { returnAtIndex } from './utils';\n\n/**\n * Returns the first argument from the function regardless of\n * the decorated functions return value.\n */\nexport const Tap = DecoratorFactory.createDecorator(\n new DecoratorConfig((fn: Function) => returnAtIndex(fn, 0), new PreValueApplicator(), { optionalParams: true })\n) as BiTypedMethodDecorator;\nexport { Tap as tap };\nexport default Tap;\n"]}
\No newline at end of file