mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Add type hint in WithColorHelper
This commit is contained in:
parent
29d40fd4ab
commit
05fa7daa97
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue