Consolidate Notification type definitions
parent
0cdc49f25c
commit
ea342f89d9
|
@ -43,6 +43,7 @@ import DeprecationWarning from 'src/admin/components/DeprecationWarning'
|
||||||
import {ErrorHandling} from 'src/shared/decorators/errors'
|
import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||||
|
|
||||||
import {Source, Kapacitor} from 'src/types'
|
import {Source, Kapacitor} from 'src/types'
|
||||||
|
import {Notification} from 'src/types/notifications'
|
||||||
|
|
||||||
interface Service {
|
interface Service {
|
||||||
link: Link
|
link: Link
|
||||||
|
@ -112,14 +113,6 @@ interface SupportedConfig {
|
||||||
victorops: Config
|
victorops: Config
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Notification {
|
|
||||||
id?: string
|
|
||||||
type: string
|
|
||||||
icon: string
|
|
||||||
duration: number
|
|
||||||
message: string
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
source: Source
|
source: Source
|
||||||
kapacitor: Kapacitor
|
kapacitor: Kapacitor
|
||||||
|
|
Loading…
Reference in New Issue