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
@@ -127,7 +127,7 @@ function parameterInfoList(xml: Element): [string, boolean][] {
});
}
const getValueType = memoize(str =>
const getValueType = memoize((str: string) =>
parseAttrs(str)
.find(s => s.localName === "type")
.value.trim()