fix: Typescript warnings when importing types (#24217)

This commit is contained in:
Michael S. Molina 2023-05-31 12:08:29 -03:00 committed by GitHub
parent d1c57e0ddb
commit 5853574b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 12 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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

View File

@ -44,7 +44,7 @@ export enum ETableAction {
FILTER = 'filter',
}
export { ColumnsType };
export type { ColumnsType };
export type OnChangeFunction<RecordType> =
AntTableProps<RecordType>['onChange'];

View File

@ -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;

View File

@ -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'> & {