import { ApiParameterListMixin , ApiItem } from '@microsoft/api-extractor-model' ; export class Utilities { private static readonly _badFilenameCharsRegExp : RegExp = /[^a-z0-9_\-\.]/gi ; /**
     * Generates a concise signature for a function.  Example: "getArea(width, height)"
     */ public static getConciseSignature ( apiItem ) { if ( ApiParameterListMixin . isBaseClassOf ( apiItem ) ) { return apiItem . displayName + '(' + apiItem . parameters . map ( ( x ) => x . name ) . join ( ', ' ) + ')' ; } return apiItem . displayName ; } /**
     * Converts bad filename characters to underscores.
     */ public static getSafeFilenameForName ( name ) { return name . replace ( Utilities . _badFilenameCharsRegExp , '_' ) . toLowerCase ( ) ; } }