chore(build): enable support for ts declare fields

This commit is contained in:
SleepWalker
2020-10-11 19:33:55 +03:00
committed by ErickSkrauch
parent f7b0c10ba9
commit 79ff3b9410
12 changed files with 1688 additions and 1678 deletions

View File

@@ -15,7 +15,7 @@ class BaseAuthBody extends React.Component<
RouteComponentProps<Record<string, any>>
> {
static contextType = Context;
/* TODO: use declare */ context: React.ContextType<typeof Context>;
declare context: React.ContextType<typeof Context>;
prevErrors: AuthContext['auth']['error'];
autoFocusField: string | null = '';

View File

@@ -17,7 +17,7 @@ export default class MfaDisable extends React.Component<
}
> {
static contextType = Context;
/* TODO: use declare */ context: React.ContextType<typeof Context>;
declare context: React.ContextType<typeof Context>;
state = {
showForm: false,

View File

@@ -41,7 +41,7 @@ interface State {
export default class MfaEnable extends React.PureComponent<Props, State> {
static contextType = Context;
/* TODO: use declare */ context: React.ContextType<typeof Context>;
declare context: React.ContextType<typeof Context>;
static defaultProps = {
confirmationForm: new FormModel(),