Skip to content

Commit

Permalink
Update lodash typings
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Thodoris Greasidis <[email protected]>
  • Loading branch information
thgreasi committed Sep 16, 2022
1 parent 55bbd0f commit 734fd4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@types/deep-freeze": "^0.1.2",
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.5",
"@types/lodash": "^4.14.182",
"@types/lodash": "^4.14.185",
"@types/memoizee": "^0.4.8",
"@types/method-override": "^0.0.32",
"@types/multer": "^1.4.7",
Expand Down
6 changes: 1 addition & 5 deletions src/sbvr-api/uri-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,7 @@ const memoizedOdata2AbstractSQL = (() => {
if (odataQuery.options) {
odataQuery = {
...odataQuery,
options: _.pick(
odataQuery.options,
// @ts-expect-error: lodash typings do not allow a single array of property paths arrays but lodash itself does and it has better performance than property path strings
cachedProps,
) as ODataOptions,
options: _.pick(odataQuery.options, cachedProps) as ODataOptions,
};
}
const { tree, extraBodyVars, extraBindVars } = $memoizedOdata2AbstractSQL(
Expand Down

0 comments on commit 734fd4c

Please sign in to comment.