Skip to content

Commit

Permalink
feat(hiccup-svg): 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 6d35b86 commit 3143141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hiccup-svg/src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { polyline } from "./polyline";
import { roundedRect } from "./rect";
import { text } from "./text";

const ATTRIB_ALIASES = {
const ATTRIB_ALIASES: { [id: string]: string } = {
alpha: "opacity",
dash: "stroke-dasharray",
dashOffset: "stroke-dashoffset",
Expand All @@ -22,7 +22,7 @@ const ATTRIB_ALIASES = {
weight: "stroke-width"
};

const TEXT_ALIGN = {
const TEXT_ALIGN: { [id: string]: string } = {
left: "start",
right: "end",
center: "middle",
Expand Down

0 comments on commit 3143141

Please sign in to comment.