Skip to content

Commit

Permalink
feat(resolve-map): enable TS strict compiler flags (refactor)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 4, 2019
1 parent 17c426b commit 7e7ff2a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/resolve-map/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { SEMAPHORE } from "@thi.ng/api";
import { isArray, isFunction, isPlainObject, isString } from "@thi.ng/checks";
import {
isArray,
isFunction,
isPlainObject,
isString
} from "@thi.ng/checks";
import { illegalArgs } from "@thi.ng/errors";
import { exists, getIn, mutIn } from "@thi.ng/paths";

Expand Down Expand Up @@ -242,7 +247,7 @@ const resolveFunction = (
.replace(/\s/g, "")
.split(/,/g)
.map((k) => k.split(":")[0])
.reduce((acc, k) => ((acc[k] = resolve(k)), acc), {});
.reduce((acc: any, k) => ((acc[k] = resolve(k)), acc), {});
res = fn(args, resolve);
} else {
res = fn(resolve);
Expand Down

0 comments on commit 7e7ff2a

Please sign in to comment.