fix tsc errors

This commit is contained in:
Pig Fang 2020-08-21 18:53:33 +08:00
parent b9de4223f8
commit 479e1cbda3
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -15,11 +15,11 @@ type State = {
invisible: boolean
}
class Captcha extends React.Component<null, State> {
class Captcha extends React.Component<Record<string, unknown>, State> {
state: State
ref: React.MutableRefObject<Reaptcha | null>
constructor(props: null) {
constructor(props: Record<string, unknown>) {
super(props)
this.state = {
value: '',