Skip to content

Commit

Permalink
use IndexPattern instead of IIndexPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jul 29, 2021
1 parent 0ad10e8 commit fe853eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/data/common/index_patterns/index_pattern.stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
* Side Public License, v 1.
*/

import { IIndexPattern } from '.';
import { IndexPattern } from '.';
import { stubFields } from './field.stub';

export const stubIndexPattern: IIndexPattern = {
export const stubIndexPattern = {
id: 'logstash-*',
fields: stubFields,
title: 'logstash-*',
timeFieldName: '@timestamp',
getTimeField: () => ({ name: '@timestamp', type: 'date' }),
};
} as IndexPattern;

export const stubIndexPatternWithFields: IIndexPattern = {
export const stubIndexPatternWithFields = {
id: '1234',
title: 'logstash-*',
fields: [
Expand All @@ -30,4 +30,4 @@ export const stubIndexPatternWithFields: IIndexPattern = {
searchable: true,
},
],
};
} as IndexPattern;

0 comments on commit fe853eb

Please sign in to comment.