mirror of https://github.com/apache/superset.git
fix: Typescript warnings when importing types (#24217)
This commit is contained in:
parent
d1c57e0ddb
commit
5853574b98
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -44,7 +44,7 @@ export enum ETableAction {
|
|||
FILTER = 'filter',
|
||||
}
|
||||
|
||||
export { ColumnsType };
|
||||
export type { ColumnsType };
|
||||
export type OnChangeFunction<RecordType> =
|
||||
AntTableProps<RecordType>['onChange'];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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<RequestBase, 'method' | 'body' | 'jsonPayload' | 'postPayload'> & {
|
||||
|
|
Loading…
Reference in New Issue