UNPKG

1.05 kBSource Map (JSON)View Raw
1{"version":3,"file":"memoizeAll.js","sourceRoot":"","sources":["src/memoizeAll.ts"],"names":[],"mappings":";;AAAA,wCAA2C;AAE3C,qCAAuF;AACvF,6CAAkD;AAGlD;;;GAGG;AACU,QAAA,UAAU,GAAG,0BAAgB,CAAC,eAAe,CACxD,IAAI,yBAAe,CAAC,OAAO,EAAE,IAAI,+BAAiB,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CACjB,CAAC;AAC1C,qBAHV,kBAAU,CAGU;AACjC,kBAAe,kBAAU,CAAC","sourcesContent":["import memoize = require('lodash/memoize');\n\nimport { DecoratorConfig, DecoratorFactory, BiTypedMethodDecorator1 } from './factory';\nimport { MemoizeApplicator } from './applicators';\nimport { MemoizeConfig } from './shared';\n\n/**\n * Memoizes a function on the prototype instead of the instance. All instances of the class use the same memoize cache.\n * @param {Function} [resolver] Optional resolver\n */\nexport const MemoizeAll = DecoratorFactory.createDecorator(\n new DecoratorConfig(memoize, new MemoizeApplicator(), { optionalParams: true })\n) as BiTypedMethodDecorator1<Function | MemoizeConfig<any, any>>;\nexport { MemoizeAll as memoizeAll };\nexport default MemoizeAll;\n"]}
\No newline at end of file