Skip to content

Commit

Permalink
Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhpillai committed Jul 18, 2024
1 parent 298c378 commit 22fba03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function AnnotationsOverlay({

const annotationsOverlayLogicProps: AnnotationsOverlayLogicProps = {
...insightProps,
dashboardId: insightProps.dashboardId,
insightNumericId,
dates,
ticks: chart.scales.x.ticks,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ import { insightVizDataLogic } from 'scenes/insights/insightVizDataLogic'
import { teamLogic } from 'scenes/teamLogic'

import { AnnotationDataWithoutInsight, annotationsModel } from '~/models/annotationsModel'
import { AnnotationScope, DatedAnnotationType, InsightLogicProps, InsightModel, IntervalType } from '~/types'
import {
AnnotationScope,
DashboardType,
DatedAnnotationType,
InsightLogicProps,
InsightModel,
IntervalType,
} from '~/types'

import type { annotationsOverlayLogicType } from './annotationsOverlayLogicType'

export interface AnnotationsOverlayLogicProps extends InsightLogicProps {
export interface AnnotationsOverlayLogicProps extends Omit<InsightLogicProps, 'dashboardId'> {
dashboardId: DashboardType['id'] | undefined
insightNumericId: InsightModel['id'] | 'new'
dates: string[]
ticks: Tick[]
Expand Down

0 comments on commit 22fba03

Please sign in to comment.