Maintain types for memoized functions
This commit is contained in:
1 parent
faa12537e4
commit
63876025d2
6 files changed
+10
-9
No files matched your search
@@ -6,7 +6,7 @@ import * as expression from "../../lib/common/expression";
|
||||
import memoize from "../../lib/common/memoize";
|
||||
import timeAgo from "../timeago";
|
||||
|
||||
const evaluateParam = memoize((exp, obj, now) => {
|
||||
const evaluateParam = memoize((exp, obj, now: number) => {
|
||||
let timestamp = now;
|
||||
const params = new Set();
|
||||
const value = expression.evaluate(exp, obj, now, e => {
|
||||
|
||||
Reference in new issue
Block a user