Skip to content

Commit

Permalink
refactor(collection): remove default export (#8053)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Jun 9, 2022
1 parent 598f61b commit 16810f3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/collection/__tests__/collection.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, test, expect } from 'vitest';
import Collection from '../src';
import { Collection } from '../src';

type TestCollection = Collection<string, number>;

Expand Down
2 changes: 0 additions & 2 deletions packages/collection/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion packages/rest/src/lib/REST.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/src/lib/RequestManager.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 16810f3

Please sign in to comment.