mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
types: assert [VI]{{inject}}[/VI] as string
This commit is contained in:
@@ -66,5 +66,4 @@ export * from '@discordjs/util';
|
|||||||
* that you are currently using.
|
* that you are currently using.
|
||||||
*/
|
*/
|
||||||
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
||||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
export const version = '[VI]{{inject}}[/VI]' as string;
|
||||||
export const version: string = '[VI]{{inject}}[/VI]';
|
|
||||||
|
|||||||
@@ -5,5 +5,4 @@ export * from './collection.js';
|
|||||||
* that you are currently using.
|
* that you are currently using.
|
||||||
*/
|
*/
|
||||||
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
||||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
export const version = '[VI]{{inject}}[/VI]' as string;
|
||||||
export const version: string = '[VI]{{inject}}[/VI]';
|
|
||||||
|
|||||||
@@ -12,5 +12,4 @@ export { makeURLSearchParams, parseResponse } from './lib/utils/utils.js';
|
|||||||
* that you are currently using.
|
* that you are currently using.
|
||||||
*/
|
*/
|
||||||
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
||||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
export const version = '[VI]{{inject}}[/VI]' as string;
|
||||||
export const version: string = '[VI]{{inject}}[/VI]';
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import { APIVersion } from 'discord-api-types/v10';
|
|||||||
import { Agent } from 'undici';
|
import { Agent } from 'undici';
|
||||||
import type { RESTOptions } from '../REST.js';
|
import type { RESTOptions } from '../REST.js';
|
||||||
|
|
||||||
export const DefaultUserAgent = `DiscordBot (https://discord.js.org, [VI]{{inject}}[/VI])`;
|
export const DefaultUserAgent =
|
||||||
|
`DiscordBot (https://discord.js.org, [VI]{{inject}}[/VI])` as `DiscordBot (https://discord.js.org, ${string})`;
|
||||||
|
|
||||||
export const DefaultRestOptions = {
|
export const DefaultRestOptions = {
|
||||||
get agent() {
|
get agent() {
|
||||||
|
|||||||
@@ -25,5 +25,4 @@ export { type JoinConfig, getVoiceConnection, getVoiceConnections, getGroups } f
|
|||||||
* that you are currently using.
|
* that you are currently using.
|
||||||
*/
|
*/
|
||||||
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
||||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
export const version: string = '[VI]{{inject}}[/VI]' as string;
|
||||||
export const version: string = '[VI]{{inject}}[/VI]';
|
|
||||||
|
|||||||
@@ -18,5 +18,4 @@ export * from './ws/WebSocketShard.js';
|
|||||||
* that you are currently using.
|
* that you are currently using.
|
||||||
*/
|
*/
|
||||||
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
// This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
||||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
export const version = '[VI]{{inject}}[/VI]' as string;
|
||||||
export const version: string = '[VI]{{inject}}[/VI]';
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export enum CompressionMethod {
|
|||||||
ZlibStream = 'zlib-stream',
|
ZlibStream = 'zlib-stream',
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DefaultDeviceProperty = `@discordjs/ws [VI]{{inject}}[/VI]`;
|
export const DefaultDeviceProperty = `@discordjs/ws [VI]{{inject}}[/VI]` as `@discordjs/ws ${string}`;
|
||||||
|
|
||||||
const getDefaultSessionStore = lazy(() => new Collection<number, SessionInfo | null>());
|
const getDefaultSessionStore = lazy(() => new Collection<number, SessionInfo | null>());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user