import { IAggConfig } from '../agg_config' ; import { BaseParamType } from './base' ; export class StringParamType extends BaseParamType { constructor ( config ) { super ( config ) ; if ( ! config . write ) { this . write = ( aggConfig , output ) => { if ( aggConfig . params [ this . name ] && aggConfig . params [ this . name ] . length ) { output . params [ this . name ] = aggConfig . params [ this . name ] ; } } ; } } }