1 | "use strict";
|
2 |
|
3 |
|
4 | Object.defineProperty(exports, "__esModule", { value: true });
|
5 | exports.Utilities = void 0;
|
6 | const api_extractor_model_1 = require("@microsoft/api-extractor-model");
|
7 | class Utilities {
|
8 | |
9 |
|
10 |
|
11 | static getConciseSignature(apiItem) {
|
12 | if (api_extractor_model_1.ApiParameterListMixin.isBaseClassOf(apiItem)) {
|
13 | return apiItem.displayName + '(' + apiItem.parameters.map((x) => x.name).join(', ') + ')';
|
14 | }
|
15 | return apiItem.displayName;
|
16 | }
|
17 | |
18 |
|
19 |
|
20 | static getSafeFilenameForName(name) {
|
21 |
|
22 |
|
23 | return name.replace(Utilities._badFilenameCharsRegExp, '_').toLowerCase();
|
24 | }
|
25 | }
|
26 | Utilities._badFilenameCharsRegExp = /[^a-z0-9_\-\.]/gi;
|
27 | exports.Utilities = Utilities;
|
28 |
|
\ | No newline at end of file |