diff --git a/superset-frontend/src/components/Checkbox/index.tsx b/superset-frontend/src/components/Checkbox/index.tsx index c9dc652b58..2c39120249 100644 --- a/superset-frontend/src/components/Checkbox/index.tsx +++ b/superset-frontend/src/components/Checkbox/index.tsx @@ -16,5 +16,6 @@ * specific language governing permissions and limitations * under the License. */ -export { default, CheckboxProps } from 'src/components/Checkbox/Checkbox'; +export { default } from 'src/components/Checkbox/Checkbox'; +export type { CheckboxProps } from 'src/components/Checkbox/Checkbox'; export * from 'src/components/Checkbox/CheckboxIcons'; diff --git a/superset-frontend/src/components/MetadataBar/index.tsx b/superset-frontend/src/components/MetadataBar/index.tsx index e4398a3063..a40e4113bb 100644 --- a/superset-frontend/src/components/MetadataBar/index.tsx +++ b/superset-frontend/src/components/MetadataBar/index.tsx @@ -16,14 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -import MetadataBar, { - MetadataBarProps, - MIN_NUMBER_ITEMS, - MAX_NUMBER_ITEMS, -} from './MetadataBar'; +import MetadataBar, { MIN_NUMBER_ITEMS, MAX_NUMBER_ITEMS } from './MetadataBar'; + +export type { MetadataBarProps } from './MetadataBar'; export default MetadataBar; -export { MetadataBarProps, MIN_NUMBER_ITEMS, MAX_NUMBER_ITEMS }; +export { MIN_NUMBER_ITEMS, MAX_NUMBER_ITEMS }; export * from './ContentType'; diff --git a/superset-frontend/src/components/Popover/index.tsx b/superset-frontend/src/components/Popover/index.tsx index bccc31c35c..acde76c1e6 100644 --- a/superset-frontend/src/components/Popover/index.tsx +++ b/superset-frontend/src/components/Popover/index.tsx @@ -18,8 +18,8 @@ */ import { Popover } from 'antd'; -export { PopoverProps } from 'antd/lib/popover'; -export { TooltipPlacement } from 'antd/lib/tooltip'; +export type { PopoverProps } from 'antd/lib/popover'; +export type { TooltipPlacement } from 'antd/lib/tooltip'; // Eventually Popover can be wrapped and customized in this file // for now we're just redirecting diff --git a/superset-frontend/src/components/Table/index.tsx b/superset-frontend/src/components/Table/index.tsx index e5ce24c64e..5ef6cc88e3 100644 --- a/superset-frontend/src/components/Table/index.tsx +++ b/superset-frontend/src/components/Table/index.tsx @@ -44,7 +44,7 @@ export enum ETableAction { FILTER = 'filter', } -export { ColumnsType }; +export type { ColumnsType }; export type OnChangeFunction = AntTableProps['onChange']; diff --git a/superset-frontend/src/dashboard/types.ts b/superset-frontend/src/dashboard/types.ts index aa261c0768..4f28e72186 100644 --- a/superset-frontend/src/dashboard/types.ts +++ b/superset-frontend/src/dashboard/types.ts @@ -34,7 +34,7 @@ import { UrlParamEntries } from 'src/utils/urlUtils'; import { UserWithPermissionsAndRoles } from 'src/types/bootstrapTypes'; import { ChartState } from '../explore/types'; -export { Dashboard } from 'src/types/Dashboard'; +export type { Dashboard } from 'src/types/Dashboard'; export type ChartReducerInitialState = typeof chart; diff --git a/superset-frontend/src/hooks/apiResources/queryApi.ts b/superset-frontend/src/hooks/apiResources/queryApi.ts index 5ccc878b0c..ee21227b29 100644 --- a/superset-frontend/src/hooks/apiResources/queryApi.ts +++ b/superset-frontend/src/hooks/apiResources/queryApi.ts @@ -27,7 +27,7 @@ import { RequestBase, } from '@superset-ui/core'; -export { JsonResponse, TextResponse } from '@superset-ui/core'; +export type { JsonResponse, TextResponse } from '@superset-ui/core'; export const supersetClientQuery: BaseQueryFn< Pick & {