refactor: split out package constant

This commit is contained in:
iCrawl
2022-08-23 04:20:41 +02:00
parent ac3bc6a2db
commit 206523587a
6 changed files with 14 additions and 24 deletions

View File

@@ -0,0 +1 @@
export const PACKAGES = ['builders', 'collection', 'proxy', 'rest', 'voice', 'ws'];

View File

@@ -25,6 +25,7 @@ export function findPackage(model: ApiModel, name: string): ApiPackage | undefin
export function generatePath(items: readonly ApiItem[], version: string) {
let path = '/docs/packages';
for (const item of items) {
switch (item.kind) {
case ApiItemKind.Model: