Skip to content

Commit

Permalink
Revert added 'format' property on serialized agg config.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Jun 17, 2020
1 parent c0c8053 commit 70103ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/data/public/search/aggs/agg_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export type AggConfigSerialized = Ensure<
enabled?: boolean;
id?: string;
params?: {} | SerializableState;
format?: {} | Ensure<SerializedFieldFormat<SerializableState>, SerializableState>;
schema?: string;
},
SerializableState
Expand Down Expand Up @@ -304,7 +303,6 @@ export class AggConfig {
enabled: this.enabled,
type: this.type && this.type.name,
params: outParams as SerializableState,
format: this.toSerializedFieldFormat(),
...(this.schema && { schema: this.schema }),
};
}
Expand All @@ -323,7 +321,9 @@ export class AggConfig {
*
* @public
*/
toSerializedFieldFormat(): AggConfigSerialized['format'] {
toSerializedFieldFormat():
| {}
| Ensure<SerializedFieldFormat<SerializableState>, SerializableState> {
return this.type ? this.type.getSerializedFormat(this) : {};
}

Expand Down

0 comments on commit 70103ea

Please sign in to comment.