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
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user