ci: deploy on vercel again

This commit is contained in:
iCrawl
2023-11-08 13:27:04 +01:00
parent 2bda883a0f
commit 4575e49ea1
13 changed files with 33 additions and 80 deletions

View File

@@ -481,10 +481,9 @@ export function ApiItemContainerMixin<TBaseClass extends IApiItemConstructor>(
const mappedTypeParameters: Map<string, string> = new Map();
if (
(apiItem.kind === ApiItemKind.Class || apiItem.kind === ApiItemKind.Interface) &&
next.item.kind === ApiItemKind.Class &&
extendsType.typeParameters?.length
next.item.kind === ApiItemKind.Class
) {
for (const [index, typeParameter] of extendsType.typeParameters.entries()) {
for (const [index, typeParameter] of extendsType.typeParameters?.entries() ?? []) {
const key = (apiItem as ApiClass | ApiInterface).typeParameters[index]?.name ?? '';
mappedTypeParameters.set(key, typeParameter);
}

View File

@@ -149,13 +149,13 @@ export class ApiClass extends ApiItemContainerMixin(
if (this.extendsType) {
jsonObject.extendsTokenRange = {
...this.extendsType.excerpt.tokenRange,
typeParameters: this.extendsType.typeParameters,
typeParameters: this.extendsType.typeParameters ?? [],
};
}
jsonObject.implementsTokenRanges = this.implementsTypes.map((x) => ({
...x.excerpt.tokenRange,
typeParameters: x.typeParameters,
typeParameters: x.typeParameters ?? [],
}));
}

View File

@@ -129,7 +129,7 @@ export class ApiInterface extends ApiItemContainerMixin(
jsonObject.extendsTokenRanges = this.extendsTypes.map((x) => ({
...x.excerpt.tokenRange,
typeParameters: x.typeParameters,
typeParameters: x.typeParameters ?? [],
}));
}

View File

@@ -38,7 +38,7 @@ export class HeritageType {
*/
public readonly excerpt: Excerpt;
public readonly typeParameters: string[];
public readonly typeParameters?: string[];
public constructor(excerpt: Excerpt, typeParameters: string[]) {
this.excerpt = excerpt;