Skip to content

Commit c5ec78c

Browse files
align types
1 parent 31a77f5 commit c5ec78c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_style_property.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export class DynamicStyleProperty<T>
325325
};
326326
}
327327

328-
formatField(value: string | number | undefined | null): string | number {
328+
formatField(value: RawValue): string | number {
329329
if (this.getField()) {
330330
const fieldName = this.getFieldName();
331331
const fieldFormatter = this._getFieldFormatter(fieldName);

x-pack/plugins/maps/public/classes/styles/vector/properties/style_property.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type LegendProps = {
2020
export interface IStyleProperty<T> {
2121
isDynamic(): boolean;
2222
isComplete(): boolean;
23-
formatField(value: string | number | undefined | null): string | number;
23+
formatField(value: RawValue): string | number;
2424
getStyleName(): VECTOR_STYLES;
2525
getOptions(): T;
2626
renderLegendDetailRow(legendProps: LegendProps): ReactElement<any> | null;
@@ -53,7 +53,7 @@ export class AbstractStyleProperty<T> implements IStyleProperty<T> {
5353
return true;
5454
}
5555

56-
formatField(value: string | number | undefined | null): string | number {
56+
formatField(value: RawValue): string | number {
5757
return typeof value === 'undefined' || value === null ? '' : value;
5858
}
5959

0 commit comments

Comments
 (0)