Add I18nKeys type to errCode

This commit is contained in:
shilangyu 2021-03-01 21:44:02 +01:00
parent 66cc9416e4
commit 1939664d73

View file

@ -1,8 +1,11 @@
import { I18nKeys } from "i18next";
import { Component } from "inferno";
import { i18n } from "../i18next";
export class NoMatch extends Component<any, any> {
private errCode = new URLSearchParams(this.props.location.search).get("err");
private errCode = new URLSearchParams(this.props.location.search).get(
"err"
) as I18nKeys;
constructor(props: any, context: any) {
super(props, context);