mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
feat: table of contents / method visibility / property modifiers
This commit is contained in:
@@ -34,7 +34,11 @@ export function generatePath(items: readonly ApiItem[]) {
|
||||
path += `${item.displayName}/`;
|
||||
break;
|
||||
case ApiItemKind.Function:
|
||||
path += `${item.displayName}:${(item as ApiFunction).overloadIndex}/`;
|
||||
// eslint-disable-next-line no-case-declarations
|
||||
const functionItem = item as ApiFunction;
|
||||
path += `${functionItem.displayName}${
|
||||
functionItem.overloadIndex && functionItem.overloadIndex > 1 ? `:${functionItem.overloadIndex}` : ''
|
||||
}:/`;
|
||||
break;
|
||||
default:
|
||||
path += `${item.displayName}/`;
|
||||
|
||||
Reference in New Issue
Block a user