UNPKG

1.81 kBSource Map (JSON)View Raw
1{"version":3,"file":"throttle.js","sourceRoot":"","sources":["src/throttle.ts"],"names":[],"mappings":";;AAAA,0CAA6C;AAE7C,qCAAiF;AACjF,6CAAmD;AAGtC,QAAA,QAAQ,GAAG,0BAAgB,CAAC,uBAAuB,CAC9D,IAAI,yBAAe,CAAC,QAAQ,EAAE,IAAI,gCAAkB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAChE,CAAC;AAU3B,mBAZR,gBAAQ,CAYQ;AARhB,QAAA,cAAc,GAAG,0BAAgB,CAAC,uBAAuB,CACpE,IAAI,yBAAe,CAAC,QAAQ,EAAE,IAAI,gCAAkB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAClD,CAAC;AAOrB,yBATd,sBAAc,CASc;AAL5B,QAAA,cAAc,GAAG,0BAAgB,CAAC,uBAAuB,CACpE,IAAI,yBAAe,CAAC,QAAQ,EAAE,IAAI,gCAAkB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAClD,CAAC;AAIrB,yBANd,sBAAc,CAMc;AACzC,kBAAe,gBAAQ,CAAC","sourcesContent":["import throttle = require('lodash/throttle');\n\nimport { DecoratorConfig, DecoratorFactory, BiTypedDecorator2 } from './factory';\nimport { PreValueApplicator } from './applicators';\nimport { ThrottleOptions } from './shared';\n\nexport const Throttle = DecoratorFactory.createInstanceDecorator(\n new DecoratorConfig(throttle, new PreValueApplicator(), { setter: true, getter: true, optionalParams: true })\n) as BiTypedDecorator2<number, ThrottleOptions>;\n\nexport const ThrottleGetter = DecoratorFactory.createInstanceDecorator(\n new DecoratorConfig(throttle, new PreValueApplicator(), { getter: true, optionalParams: true })\n) as BiTypedDecorator2<number, ThrottleOptions>;\n\nexport const ThrottleSetter = DecoratorFactory.createInstanceDecorator(\n new DecoratorConfig(throttle, new PreValueApplicator(), { setter: true, optionalParams: true })\n) as BiTypedDecorator2<number, ThrottleOptions>;\n\nexport { Throttle as throttle };\nexport { ThrottleGetter as throttleGetter };\nexport { ThrottleSetter as throttleSetter };\nexport default Throttle;\n"]}
\No newline at end of file