fix(ui): repair typescript definitions
parent
b6374561a8
commit
83cc473d64
|
@ -1,6 +1,6 @@
|
||||||
// Libraries
|
// Libraries
|
||||||
import React, {MouseEvent, PureComponent} from 'react'
|
import React, {MouseEvent, PureComponent} from 'react'
|
||||||
import {connect} from 'react-redux'
|
import {connect, ResolveThunks} from 'react-redux'
|
||||||
|
|
||||||
// APIs
|
// APIs
|
||||||
import {getKapacitors, pingKapacitor} from 'src/shared/apis'
|
import {getKapacitors, pingKapacitor} from 'src/shared/apis'
|
||||||
|
@ -23,13 +23,13 @@ import {Source, Kapacitor, RemoteDataState} from 'src/types'
|
||||||
// Decorators
|
// Decorators
|
||||||
import {ErrorHandling} from 'src/shared/decorators/errors'
|
import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||||
import NoKapacitorError from 'src/shared/components/NoKapacitorError'
|
import NoKapacitorError from 'src/shared/components/NoKapacitorError'
|
||||||
|
interface ReduxDispatchProps {
|
||||||
interface Props {
|
|
||||||
// connected props
|
// connected props
|
||||||
notify: typeof mdtp.notify
|
notify: typeof mdtp.notify
|
||||||
setActiveKapacitor: typeof mdtp.setActiveKapacitor
|
setActiveKapacitor: typeof mdtp.setActiveKapacitor
|
||||||
|
}
|
||||||
|
|
||||||
// own props
|
interface OwnProps {
|
||||||
title: string
|
title: string
|
||||||
source: Source
|
source: Source
|
||||||
tooltip?: string
|
tooltip?: string
|
||||||
|
@ -40,6 +40,7 @@ interface Props {
|
||||||
) => JSX.Element
|
) => JSX.Element
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Props = OwnProps & ResolveThunks<ReduxDispatchProps>
|
||||||
interface State {
|
interface State {
|
||||||
loading: RemoteDataState
|
loading: RemoteDataState
|
||||||
scrollTop: number
|
scrollTop: number
|
||||||
|
|
Loading…
Reference in New Issue