mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
style: fix up lint
This commit is contained in:
@@ -164,7 +164,7 @@ export class Documentation {
|
||||
file: member.sources?.[0]?.fileName,
|
||||
line: member.sources?.[0]?.line,
|
||||
path: dirname(member.sources?.[0]?.fileName ?? ''),
|
||||
};
|
||||
};
|
||||
|
||||
if (prop!.name) {
|
||||
info.push(`member of "${prop!.name}"`);
|
||||
|
||||
@@ -29,7 +29,7 @@ export class DocumentedConstructor extends DocumentedItem<Constructor | Declarat
|
||||
params: signature.parameters
|
||||
? (signature as SignatureReflection).parameters?.map((param) =>
|
||||
new DocumentedParam(param, this.config).serialize(),
|
||||
)
|
||||
)
|
||||
: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ export class DocumentedEvent extends DocumentedItem<DeclarationReflection | Even
|
||||
},
|
||||
this.config,
|
||||
).serialize(),
|
||||
]
|
||||
]
|
||||
: undefined,
|
||||
returnsDescription:
|
||||
signature.comment?.blockTags
|
||||
|
||||
@@ -57,7 +57,7 @@ export class DocumentedMethod extends DocumentedItem<DeclarationReflection | Met
|
||||
params: signature.parameters
|
||||
? (signature as SignatureReflection).parameters?.map((param) =>
|
||||
new DocumentedParam(param, this.config).serialize(),
|
||||
)
|
||||
)
|
||||
: undefined,
|
||||
returns: signature.type
|
||||
? [
|
||||
@@ -74,7 +74,7 @@ export class DocumentedMethod extends DocumentedItem<DeclarationReflection | Met
|
||||
},
|
||||
this.config,
|
||||
).serialize(),
|
||||
]
|
||||
]
|
||||
: undefined,
|
||||
returnsDescription:
|
||||
signature.comment?.blockTags
|
||||
@@ -113,7 +113,7 @@ export class DocumentedMethod extends DocumentedItem<DeclarationReflection | Met
|
||||
{ names: param.type.names, description: param.description, nullable: param.nullable },
|
||||
this.config,
|
||||
).serialize(),
|
||||
)
|
||||
)
|
||||
: undefined,
|
||||
meta: new DocumentedItemMeta(data.meta, this.config).serialize(),
|
||||
};
|
||||
|
||||
@@ -66,7 +66,7 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
.trim() || undefined,
|
||||
type: [[[(child.type as LiteralType | undefined)?.value]]],
|
||||
}))
|
||||
}))
|
||||
: undefined,
|
||||
};
|
||||
}
|
||||
@@ -99,7 +99,7 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
|
||||
type: child.type
|
||||
? new DocumentedVarType({ names: [parseType(child.type)] }, this.config).serialize()
|
||||
: child.kindString === 'Method'
|
||||
? new DocumentedVarType(
|
||||
? new DocumentedVarType(
|
||||
{
|
||||
names: [
|
||||
parseType({
|
||||
@@ -114,8 +114,8 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
|
||||
.trim(),
|
||||
},
|
||||
this.config,
|
||||
).serialize()
|
||||
: undefined,
|
||||
).serialize()
|
||||
: undefined,
|
||||
}));
|
||||
|
||||
return {
|
||||
@@ -185,7 +185,7 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
|
||||
},
|
||||
this.config,
|
||||
).serialize(),
|
||||
]
|
||||
]
|
||||
: undefined,
|
||||
returnsDescription:
|
||||
sig?.comment?.blockTags
|
||||
|
||||
Reference in New Issue
Block a user