Re-introduce required id types for FormatType. (#133812)

This commit is contained in:
Justin Kambic 2022-06-07 14:18:23 -04:00 committed by GitHub
parent 3902b17c37
commit 2dd0ea1b76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,6 +123,10 @@ export interface ConfigProps {
series?: SeriesUrl;
}
interface FormatType extends SerializedFieldFormat<FieldFormatParams> {
id: 'duration' | 'number' | 'bytes' | 'percent';
}
export type AppDataType = 'synthetics' | 'ux' | 'infra_logs' | 'infra_metrics' | 'apm' | 'mobile';
type InputFormat = 'microseconds' | 'milliseconds' | 'seconds';
@ -138,7 +142,7 @@ export interface FieldFormatParams extends BaseFieldFormatParams {
export interface FieldFormat {
field: string;
format: SerializedFieldFormat<FieldFormatParams>;
format: FormatType;
}
export interface BuilderItem {