mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
ci: deploy on vercel again
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 ?? [],
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ export class ApiInterface extends ApiItemContainerMixin(
|
||||
|
||||
jsonObject.extendsTokenRanges = this.extendsTypes.map((x) => ({
|
||||
...x.excerpt.tokenRange,
|
||||
typeParameters: x.typeParameters,
|
||||
typeParameters: x.typeParameters ?? [],
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user