Add type hint in WithColorHelper

This commit is contained in:
Henrik Giesel 2021-06-19 16:31:35 +02:00
parent 29d40fd4ab
commit 05fa7daa97

View file

@ -5,7 +5,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<script lang="typescript"> <script lang="typescript">
import { colorHelperIcon } from "./icons"; import { colorHelperIcon } from "./icons";
export let color; export let color: string;
function setColor({ currentTarget }: Event): string { function setColor({ currentTarget }: Event): string {
return (color = (currentTarget! as HTMLInputElement).value); return (color = (currentTarget! as HTMLInputElement).value);