File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
x-pack/plugins/maps/public/classes/styles/vector/properties Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export type LegendProps = {
2020export 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
You can’t perform that action at this time.
0 commit comments