mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
fix(typings): collection constructor
This commit is contained in:
parent
ac44a7fc57
commit
33ecdd4c50
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue