Skip to content

Commit 16810f3

Browse files
authored
refactor(collection): remove default export (#8053)
1 parent 598f61b commit 16810f3

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

Diff for: packages/collection/__tests__/collection.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, test, expect } from 'vitest';
2-
import Collection from '../src';
2+
import { Collection } from '../src';
33

44
type TestCollection = Collection<string, number>;
55

Diff for: packages/collection/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -776,5 +776,3 @@ export type Keep<V> = { keep: true; value: V } | { keep: false };
776776
* @internal
777777
*/
778778
export type Comparator<K, V> = (firstValue: V, secondValue: V, firstKey: K, secondKey: K) => number;
779-
780-
export default Collection;

Diff for: packages/rest/src/lib/REST.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EventEmitter } from 'node:events';
2-
import type Collection from '@discordjs/collection';
2+
import type { Collection } from '@discordjs/collection';
33
import type { request, Dispatcher } from 'undici';
44
import { CDN } from './CDN';
55
import {

Diff for: packages/rest/src/lib/RequestManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Blob } from 'node:buffer';
22
import { EventEmitter } from 'node:events';
3-
import Collection from '@discordjs/collection';
3+
import { Collection } from '@discordjs/collection';
44
import { DiscordSnowflake } from '@sapphire/snowflake';
55
import { FormData, type RequestInit, type BodyInit, type Dispatcher, Agent } from 'undici';
66
import type { RESTOptions, RestEvents, RequestOptions } from './REST';

0 commit comments

Comments
 (0)