mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
chore: use descriptive type parameter names (#9937)
* chore: use descriptive type parameter names * refactor: requested changes --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
657
packages/discord.js/typings/index.d.ts
vendored
657
packages/discord.js/typings/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@@ -190,8 +190,11 @@ import { expectAssignable, expectNotAssignable, expectNotType, expectType } from
|
||||
import type { ContextMenuCommandBuilder, SlashCommandBuilder } from '@discordjs/builders';
|
||||
|
||||
// Test type transformation:
|
||||
declare const serialize: <T>(value: T) => Serialized<T>;
|
||||
declare const notPropertyOf: <T, P extends PropertyKey>(value: T, property: P & Exclude<P, keyof T>) => void;
|
||||
declare const serialize: <Value>(value: Value) => Serialized<Value>;
|
||||
declare const notPropertyOf: <Value, Property extends PropertyKey>(
|
||||
value: Value,
|
||||
property: Property & Exclude<Property, keyof Value>,
|
||||
) => void;
|
||||
|
||||
const client: Client = new Client({
|
||||
intents: GatewayIntentBits.Guilds,
|
||||
|
||||
Reference in New Issue
Block a user