From 1815786dd626dd4893d4950cfd864227c9900481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=BC=E6=97=8F=E5=B0=8F=E7=8B=88?= <1340641314@qq.com> Date: Wed, 24 Feb 2021 16:12:42 +0800 Subject: [PATCH] fix(src/Element.ts) Element type error --- src/Element.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Element.ts b/src/Element.ts index 855e722f3..6dc46463c 100644 --- a/src/Element.ts +++ b/src/Element.ts @@ -676,7 +676,7 @@ class Element { return '#fff'; } - protected getInsideTextStroke(textFill: string): string { + protected getInsideTextStroke(textFill: string): string | undefined { return '#000'; } @@ -1955,4 +1955,4 @@ function animateToShallow( } -export default Element; \ No newline at end of file +export default Element;