build: multi-config build and dep update

This commit is contained in:
iCrawl
2023-11-14 01:26:22 +01:00
parent 75fc7f2454
commit 8f432400d8
124 changed files with 566 additions and 252 deletions

View File

@@ -72,14 +72,14 @@
"@discordjs/docgen": "workspace:^",
"@favware/cliff-jumper": "2.2.1",
"@types/node": "16.18.60",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"cross-env": "^7.0.3",
"dtslint": "4.2.1",
"eslint": "8.53.0",
"eslint-formatter-pretty": "5.0.0",
"jest": "29.7.0",
"prettier": "3.0.3",
"prettier": "3.1.0",
"tsd": "0.29.0",
"tslint": "6.1.3",
"turbo": "^1.10.17-canary.0",

View File

@@ -167,8 +167,8 @@ class ClientApplication extends Application {
this.owner = data.team
? new Team(this.client, data.team)
: data.owner
? this.client.users._add(data.owner)
: this.owner ?? null;
? this.client.users._add(data.owner)
: this.owner ?? null;
}
/**

View File

@@ -242,8 +242,8 @@ class VoiceState extends Base {
request_to_speak_timestamp: options.requestToSpeak
? new Date().toISOString()
: options.requestToSpeak === false
? null
: undefined,
? null
: undefined,
suppress: options.suppressed,
},
});

View File

@@ -955,8 +955,8 @@ export abstract class BaseChannel extends Base {
export type If<Value extends boolean, TrueResult, FalseResult = null> = Value extends true
? TrueResult
: Value extends false
? FalseResult
: TrueResult | FalseResult;
? FalseResult
: TrueResult | FalseResult;
export class Client<Ready extends boolean = boolean> extends BaseClient {
public constructor(options: ClientOptions);
@@ -1812,10 +1812,10 @@ export type CacheTypeReducer<
> = [State] extends ['cached']
? CachedType
: [State] extends ['raw']
? RawType
: [State] extends ['raw' | 'cached']
? PresentType
: Fallback;
? RawType
: [State] extends ['raw' | 'cached']
? PresentType
: Fallback;
export type Interaction<Cached extends CacheType = CacheType> =
| ChatInputCommandInteraction<Cached>
@@ -5834,8 +5834,8 @@ export type GuildScheduledEventSetStatusArg<Status extends GuildScheduledEventSt
Status extends GuildScheduledEventStatus.Scheduled
? GuildScheduledEventStatus.Active | GuildScheduledEventStatus.Canceled
: Status extends GuildScheduledEventStatus.Active
? GuildScheduledEventStatus.Completed
: never;
? GuildScheduledEventStatus.Completed
: never;
export interface GuildScheduledEventUser<WithMember> {
guildScheduledEventId: Snowflake;
@@ -6265,10 +6265,10 @@ export type Partialize<
[K in keyof Omit<PartialType, OverridableKeys>]: K extends 'partial'
? true
: K extends NulledKeys
? null
: K extends NullableKeys
? PartialType[K] | null
: PartialType[K];
? null
: K extends NullableKeys
? PartialType[K] | null
: PartialType[K];
};
export interface PartialDMChannel extends Partialize<DMChannel, null, null, 'lastMessageId'> {
@@ -6648,14 +6648,14 @@ export interface ClientApplicationInstallParams {
export type Serialized<Value> = Value extends symbol | bigint | (() => any)
? never
: Value extends number | string | boolean | undefined
? Value
: Value extends JSONEncodable<infer JSONResult>
? JSONResult
: Value extends ReadonlyArray<infer ItemType>
? Serialized<ItemType>[]
: Value extends ReadonlyMap<unknown, unknown> | ReadonlySet<unknown>
? {}
: { [K in keyof Value]: Serialized<Value[K]> };
? Value
: Value extends JSONEncodable<infer JSONResult>
? JSONResult
: Value extends ReadonlyArray<infer ItemType>
? Serialized<ItemType>[]
: Value extends ReadonlyMap<unknown, unknown> | ReadonlySet<unknown>
? {}
: { [K in keyof Value]: Serialized<Value[K]> };
//#endregion