Skip to content

Commit

Permalink
move optional params below required
Browse files Browse the repository at this point in the history
Signed-off-by: Lu Yu <[email protected]>
  • Loading branch information
BionIT committed Mar 25, 2024
1 parent 5a2a8e5 commit 5a9206f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
import { DataSourceAttributes } from '../../types';

export interface DataSourceOption {
label?: string;
id: string;
label?: string;
}

export interface DataSourceBaseConfig {
Expand All @@ -22,8 +22,8 @@ export interface DataSourceBaseConfig {

export interface DataSourceMenuProps<T = any> {
componentType: DataSourceComponentType;
setMenuMountPoint?: (menuMount: MountPoint | undefined) => void;
componentConfig: T;
setMenuMountPoint?: (menuMount: MountPoint | undefined) => void;
}

export const DataSourceComponentType = {
Expand All @@ -41,19 +41,19 @@ export interface DataSourceViewConfig extends DataSourceBaseConfig {
}

export interface DataSourceAggregatedViewConfig extends DataSourceBaseConfig {
savedObjects: SavedObjectsClientContract;
notifications: NotificationsStart;
activeDataSourceIds?: string[];
hideLocalCluster?: boolean;
displayAllCompatibleDataSources?: boolean;
dataSourceFilter?: (dataSource: SavedObject<DataSourceAttributes>) => boolean;
savedObjects: SavedObjectsClientContract;
notifications: NotificationsStart;
}

export interface DataSourceSelectableConfig extends DataSourceBaseConfig {
activeOption?: DataSourceOption[];
hideLocalCluster?: boolean;
onSelectedDataSources: (dataSources: DataSourceOption[]) => void;
dataSourceFilter?: (dataSource: SavedObject<DataSourceAttributes>) => boolean;
savedObjects: SavedObjectsClientContract;
notifications: NotificationsStart;
activeOption?: DataSourceOption[];
hideLocalCluster?: boolean;
dataSourceFilter?: (dataSource: SavedObject<DataSourceAttributes>) => boolean;
}

0 comments on commit 5a9206f

Please sign in to comment.