Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed May 2, 2022
1 parent f6dd31d commit c5707ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ interface Context {
embeddable: IEmbeddable;
}

export const createOpenInDiscoverAction = (discover: DiscoverSetup, hasDiscoverAccess: boolean) =>
export const createOpenInDiscoverAction = (
discover: Pick<DiscoverSetup, 'locator'>,
hasDiscoverAccess: boolean
) =>
createAction<Context>({
type: ACTION_OPEN_IN_DISCOVER,
id: ACTION_OPEN_IN_DISCOVER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ interface EmbeddableQueryInput extends EmbeddableInput {
export type EmbeddableWithQueryInput = IEmbeddable<EmbeddableQueryInput>;

interface UrlDrilldownDeps {
discover: DiscoverSetup;
discover: Pick<DiscoverSetup, 'locator'>;
hasDiscoverAccess: () => boolean;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface Context {
timeRange?: TimeRange;
openInSameTab?: boolean;
hasDiscoverAccess: boolean;
discover: DiscoverSetup;
discover: Pick<DiscoverSetup, 'locator'>;
}

function isLensEmbeddable(embeddable: IEmbeddable): embeddable is Embeddable {
Expand Down

0 comments on commit c5707ee

Please sign in to comment.