mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(typings): collection constructor
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
"runkitExampleFilename": "./docs/examples/ping.js",
|
||||
"unpkg": "./webpack/discord.min.js",
|
||||
"dependencies": {
|
||||
"@discordjs/collection": "^0.1.0",
|
||||
"@discordjs/collection": "^0.1.1",
|
||||
"abort-controller": "^3.0.0",
|
||||
"form-data": "^2.3.3",
|
||||
"node-fetch": "^2.3.0",
|
||||
|
||||
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
declare module 'discord.js' {
|
||||
import BaseCollection from '@discordjs/collection';
|
||||
import BaseCollection, { CollectionConstructor } from '@discordjs/collection';
|
||||
import { EventEmitter } from 'events';
|
||||
import { Stream, Readable, Writable } from 'stream';
|
||||
import { ChildProcess } from 'child_process';
|
||||
@@ -1684,7 +1684,7 @@ declare module 'discord.js' {
|
||||
|
||||
export class DataStore<K, V, VConstructor = Constructable<V>, R = any> extends Collection<K, V> {
|
||||
constructor(client: Client, iterable: Iterable<any>, holds: VConstructor);
|
||||
public static readonly [Symbol.species]: typeof Collection;
|
||||
public static readonly [Symbol.species]: typeof CollectionConstructor;
|
||||
public client: Client;
|
||||
public holds: VConstructor;
|
||||
public add(data: any, cache?: boolean, { id, extras }?: { id: K, extras: any[] }): V;
|
||||
|
||||
Reference in New Issue
Block a user