Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Oct 11, 2021
1 parent 7d804a2 commit f6635c8
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface ManageScopeInit extends Partial<ManageScope> {
id: SourcererScopeName;
}

export type SourcererScopeById = Record<SourcererScopeName | string, ManageScope>;
export type SourcererScopeById = Record<SourcererScopeName, ManageScope>;

export interface KibanaDataView {
/** Uniquely identifies a Kibana Index Pattern */
Expand All @@ -65,16 +65,7 @@ export interface SourcererModel {
sourcererScopes: SourcererScopeById;
}

export const initSourcererScope: Pick<
ManageScope,
| 'browserFields'
| 'docValueFields'
| 'errorMessage'
| 'indexPattern'
| 'indicesExist'
| 'loading'
| 'selectedPatterns'
> = {
export const initSourcererScope: Omit<ManageScope, 'id'> = {
browserFields: EMPTY_BROWSER_FIELDS,
docValueFields: EMPTY_DOCVALUE_FIELD,
errorMessage: null,
Expand Down

0 comments on commit f6635c8

Please sign in to comment.