Skip to content

Commit

Permalink
feat(rstream-dot): 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 ace51f8 commit acfe75e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/rstream-dot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import {
StreamMerge,
StreamSync
} from "@thi.ng/rstream";
import { DotOpts, Node, WalkState } from "./api";
import {
DotOpts,
Node,
NodeType,
WalkState
} from "./api";

export * from "./api";

Expand Down Expand Up @@ -32,7 +37,7 @@ const dotNode = (s: Node, opts: DotOpts) => {
}
res += `", color="`;
res +=
(s.type && opts.color[s.type.toLowerCase()]) ||
(s.type && opts.color[<NodeType>s.type.toLowerCase()]) ||
(s.label === "<noid>" ? opts.color.noid : opts.color.default);
return res + `"];`;
};
Expand Down

0 comments on commit acfe75e

Please sign in to comment.