Skip to content
Snippets Groups Projects
Unverified Commit f4b3ee64 authored by Kyle Doherty's avatar Kyle Doherty
Browse files

better flow types + lint

parent 72a44b11
Branches
Tags embedding-sdk-0.1.29
No related merge requests found
......@@ -9,5 +9,6 @@ export type Segment = {
name: string,
id: SegmentId,
table_id: TableId,
is_active: bool
is_active: bool,
description: string
};
import type {
/* @flow */
/*
* NOTE(@kdoh) 8/5/2017 - Disabling this file until we add Card XRay support
* import type {
ClickAction,
ClickActionProps
} from "metabase/meta/types/Visualization";
......@@ -20,3 +23,4 @@ export default ({ card, tableMetadata }: ClickActionProps): ClickAction[] => {
return [];
}
};
*/
......@@ -25,18 +25,14 @@ import StatGroup from 'metabase/xray/components/StatGroup'
import Histogram from 'metabase/xray/Histogram'
import { Heading, XRayPageWrapper } from 'metabase/xray/components/XRayLayout'
import type { Field } from 'metabase/meta/types/Field'
import type { Table } from 'metabase/meta/types/Table'
type Props = {
fetchFieldFingerPrint: () => void,
fingerprint: {
table: {
id: number,
display_name: string
},
field: {
display_name: string,
id: number,
description: string
},
table: Table,
field: Field,
histogram: {
value: {}
}
......
......@@ -20,19 +20,15 @@ import {
import Constituent from 'metabase/xray/components/Constituent'
import type { Table } from 'metabase/meta/types/Table'
import type { Segment } from 'metabase/meta/types/Segment'
type Props = {
fetchSegmentFingerPrint: () => void,
constituents: [],
fingerprint: {
table: {
id: number,
display_name: string
},
segment: {
id: number,
name: string,
description: string
}
table: Table,
segment: Segment,
},
params: {
segmentId: number,
......
......@@ -20,15 +20,13 @@ import {
import Icon from 'metabase/components/Icon'
import LoadingAndErrorWrapper from 'metabase/components/LoadingAndErrorWrapper'
import type { Table } from 'metabase/meta/types/Table'
type Props = {
constituents: [],
fetchTableFingerPrint: () => void,
fingerprint: {
table: {
id: number,
display_name: string,
description: string
}
table: Table
},
params: {
tableId: number,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment