From 16810f3e410bf35ed7e6e7412d517ea74c792c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=2E=20Rom=C3=A1n?= Date: Thu, 9 Jun 2022 16:53:01 +0200 Subject: [PATCH] refactor(collection): remove default export (#8053) --- packages/collection/__tests__/collection.test.ts | 2 +- packages/collection/src/index.ts | 2 -- packages/rest/src/lib/REST.ts | 2 +- packages/rest/src/lib/RequestManager.ts | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/collection/__tests__/collection.test.ts b/packages/collection/__tests__/collection.test.ts index d5352bc59c5b..e59caa90fc35 100644 --- a/packages/collection/__tests__/collection.test.ts +++ b/packages/collection/__tests__/collection.test.ts @@ -1,5 +1,5 @@ import { describe, test, expect } from 'vitest'; -import Collection from '../src'; +import { Collection } from '../src'; type TestCollection = Collection; diff --git a/packages/collection/src/index.ts b/packages/collection/src/index.ts index 5ab8f277f9bc..ca9d3df236ee 100644 --- a/packages/collection/src/index.ts +++ b/packages/collection/src/index.ts @@ -776,5 +776,3 @@ export type Keep = { keep: true; value: V } | { keep: false }; * @internal */ export type Comparator = (firstValue: V, secondValue: V, firstKey: K, secondKey: K) => number; - -export default Collection; diff --git a/packages/rest/src/lib/REST.ts b/packages/rest/src/lib/REST.ts index cf763843b2e7..a045641cdf82 100644 --- a/packages/rest/src/lib/REST.ts +++ b/packages/rest/src/lib/REST.ts @@ -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 { diff --git a/packages/rest/src/lib/RequestManager.ts b/packages/rest/src/lib/RequestManager.ts index 2ffd0dfe926e..1bd10f016f31 100644 --- a/packages/rest/src/lib/RequestManager.ts +++ b/packages/rest/src/lib/RequestManager.ts @@ -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';