refactor(collection): remove default export (#8053)

This commit is contained in:
A. Román
2022-06-09 16:53:01 +02:00
committed by GitHub
parent 598f61b992
commit 16810f3e41
4 changed files with 3 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import { describe, test, expect } from 'vitest';
import Collection from '../src';
import { Collection } from '../src';
type TestCollection = Collection<string, number>;

View File

@@ -776,5 +776,3 @@ export type Keep<V> = { keep: true; value: V } | { keep: false };
* @internal
*/
export type Comparator<K, V> = (firstValue: V, secondValue: V, firstKey: K, secondKey: K) => number;
export default Collection;

View File

@@ -1,5 +1,5 @@
import { EventEmitter } from 'node:events';
import type Collection from '@discordjs/collection';
import type { Collection } from '@discordjs/collection';
import type { request, Dispatcher } from 'undici';
import { CDN } from './CDN';
import {

View File

@@ -1,6 +1,6 @@
import { Blob } from 'node:buffer';
import { EventEmitter } from 'node:events';
import Collection from '@discordjs/collection';
import { Collection } from '@discordjs/collection';
import { DiscordSnowflake } from '@sapphire/snowflake';
import { FormData, type RequestInit, type BodyInit, type Dispatcher, Agent } from 'undici';
import type { RESTOptions, RestEvents, RequestOptions } from './REST';