Skip to content

Commit

Permalink
ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Dec 20, 2019
1 parent c1eb22d commit e849195
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/legacy/core_plugins/data/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export { DataStart };

export { Field, FieldType, IFieldList, IndexPattern } from './index_patterns';
export { EsQuerySortValue, FetchOptions, ISearchSource, SortDirection } from './search/types';
export { SearchSourceFields } from './search/types';
export {
SavedQueryAttributes,
SavedQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
* under the License.
*/

import { SearchSource as SearchSourceClass } from 'ui/courier';
import { SearchSource as SearchSourceClass, ISearchSource } from 'ui/courier';
import { Class } from '@kbn/utility-types';

export { Vis, VisParams } from 'ui/vis';
export { VisOptionsProps } from 'ui/vis/editors/default';
export { ValidatedDualRange } from 'ui/validated_range';
export { SearchSourceFields } from 'ui/courier/types';
export { SearchSourceFields } from '../../data/public';

export type SearchSource = Class<SearchSourceClass>;
export type SearchSource = Class<ISearchSource>;
export const SearchSource = SearchSourceClass;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { SearchSourceContract } from 'ui/courier';
import { ISearchSource } from 'ui/courier';
import { SavedObject, SavedObjectKibanaServices } from 'ui/saved_objects/types';
import { createSavedObjectClass } from 'ui/saved_objects/saved_object';
import { extractReferences, injectReferences } from './saved_dashboard_references';
Expand All @@ -36,7 +36,7 @@ export interface SavedObjectDashboard extends SavedObject {
uiStateJSON?: string;
lastSavedTitle: string;
refreshInterval?: RefreshInterval;
searchSource: SearchSourceContract;
searchSource: ISearchSource;
getQuery(): Query;
getFilters(): esFilters.Filter[];
}
Expand Down

0 comments on commit e849195

Please sign in to comment.