File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
repo-scripts/api-documenter/src/documenters Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,18 @@ export function getFilenameForApiItem(apiItem: ApiItem): string {
96
96
multipleEntryPoints = true ;
97
97
}
98
98
break ;
99
+ case ApiItemKind . Namespace :
100
+ baseName += '.' + qualifiedName ;
101
+ break ;
102
+ // append the file name with the first letter of the ApiItemKind to avoid name collision.
103
+ // Sometimes we could have a class/interface and an entry point that have the same name.
104
+ // This happened in the admin SDK where the App interface and the app namespace write to the same file.
99
105
case ApiItemKind . Class :
106
+ baseName += '.' + qualifiedName + '_c' ;
107
+ break ;
100
108
case ApiItemKind . Interface :
101
- baseName += '.' + qualifiedName ;
109
+ baseName += '.' + qualifiedName + '_i' ;
110
+ break ;
102
111
}
103
112
}
104
113
return baseName + '.md' ;
You can’t perform that action at this time.
0 commit comments