Maintain types for memoized functions

This commit is contained in:
Zaid Abdulla committed 2019-06-05 00:17:36 -07:00
1 parent faa12537e4
commit 63876025d2
6 files changed
+10 -9

No files matched your search

+1 -1
View File
@@ -285,7 +285,7 @@ const lang = parsimmon.createLanguage({
}
});
export function parse(str): Expression {
export function parse(str: string): Expression {
if (!str) return null;
return lang.Expression.tryParse(str);
}