mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
build: bump dependencies (#10457)
* build: bump `@vladfrangu/async_event_emitter` * chore: bump again + fixes * build: bump types/node and some dev deps * build: bump discord-api-types again * style: remove unused eslint-ignore comment * build: sync dependencies and update templates * build: bump turbo * build: vercel + vitest * build: bump undici --------- Co-authored-by: Vlad Frangu <me@vladfrangu.dev>
This commit is contained in:
@@ -112,11 +112,11 @@ export class DocumentedClass extends DocumentedItem<Class | DeclarationReflectio
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||
? signature.comment.blockTags
|
||||
? (signature.comment.blockTags
|
||||
.find((block) => block.tag === '@deprecated')
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||
.trim() ?? true
|
||||
.trim() ?? true)
|
||||
: undefined,
|
||||
construct: this.construct?.serialize(),
|
||||
props: this.props.size ? [...this.props.values()].map((param) => param.serialize()) : undefined,
|
||||
|
||||
@@ -44,11 +44,11 @@ export class DocumentedEvent extends DocumentedItem<DeclarationReflection | Even
|
||||
: undefined,
|
||||
examples,
|
||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||
? signature.comment.blockTags
|
||||
? (signature.comment.blockTags
|
||||
.find((block) => block.tag === '@deprecated')
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||
.trim() ?? true
|
||||
.trim() ?? true)
|
||||
: undefined,
|
||||
// @ts-expect-error: Parameters type is not available
|
||||
params: signature.parameters
|
||||
|
||||
@@ -39,11 +39,11 @@ export class DocumentedMember extends DocumentedItem<DeclarationReflection | Mem
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||
? signature.comment.blockTags
|
||||
? (signature.comment.blockTags
|
||||
.find((block) => block.tag === '@deprecated')
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||
.trim() ?? true
|
||||
.trim() ?? true)
|
||||
: undefined,
|
||||
default:
|
||||
(data.defaultValue === '...' ? undefined : data.defaultValue) ??
|
||||
@@ -92,11 +92,11 @@ export class DocumentedMember extends DocumentedItem<DeclarationReflection | Mem
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
abstract: getter.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
||||
deprecated: getter.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||
? getter.comment.blockTags
|
||||
? (getter.comment.blockTags
|
||||
.find((block) => block.tag === '@deprecated')
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||
.trim() ?? true
|
||||
.trim() ?? true)
|
||||
: undefined,
|
||||
default:
|
||||
base.default ??
|
||||
|
||||
@@ -46,11 +46,11 @@ export class DocumentedMethod extends DocumentedItem<DeclarationReflection | Met
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||
? signature.comment.blockTags
|
||||
? (signature.comment.blockTags
|
||||
.find((block) => block.tag === '@deprecated')
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||
.trim() ?? true
|
||||
.trim() ?? true)
|
||||
: undefined,
|
||||
// emits: signature.comment?.blockTags?.filter((t) => t.tag === '@emits').map((t) => t.content),
|
||||
// @ts-expect-error: Typescript doesn't know that this is a SignatureReflection
|
||||
|
||||
@@ -36,11 +36,11 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
|
||||
? 'private'
|
||||
: undefined,
|
||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||
? signature.comment.blockTags
|
||||
? (signature.comment.blockTags
|
||||
.find((block) => block.tag === '@deprecated')
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||
.trim() ?? true
|
||||
.trim() ?? true)
|
||||
: undefined,
|
||||
type: signature.type
|
||||
? new DocumentedVarType({ names: [parseType(signature.type)] }, this.config).serialize()
|
||||
@@ -163,11 +163,11 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
|
||||
? 'private'
|
||||
: undefined,
|
||||
deprecated: sig?.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||
? sig.comment.blockTags
|
||||
? (sig.comment.blockTags
|
||||
.find((block) => block.tag === '@deprecated')
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||
.trim() ?? true
|
||||
.trim() ?? true)
|
||||
: undefined,
|
||||
params,
|
||||
returns: sig?.type
|
||||
|
||||
Reference in New Issue
Block a user