From 479e1cbda3a5694bdfc9202c56e0dcac7556425c Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Fri, 21 Aug 2020 18:53:33 +0800 Subject: [PATCH] fix tsc errors --- resources/assets/src/components/Captcha.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/src/components/Captcha.tsx b/resources/assets/src/components/Captcha.tsx index f6629052..5169aad4 100644 --- a/resources/assets/src/components/Captcha.tsx +++ b/resources/assets/src/components/Captcha.tsx @@ -15,11 +15,11 @@ type State = { invisible: boolean } -class Captcha extends React.Component { +class Captcha extends React.Component, State> { state: State ref: React.MutableRefObject - constructor(props: null) { + constructor(props: Record) { super(props) this.state = { value: '',