mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
chore: use descriptive type parameter names (#9937)
* chore: use descriptive type parameter names * refactor: requested changes --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
import { describe, test, expect } from 'vitest';
|
||||
import { Collection } from '../src/index.js';
|
||||
|
||||
type TestCollection<V> = Collection<string, V>;
|
||||
type TestCollection<Value> = Collection<string, Value>;
|
||||
|
||||
function createCollection<V = number>(): TestCollection<V> {
|
||||
function createCollection<Value = number>(): TestCollection<Value> {
|
||||
return new Collection();
|
||||
}
|
||||
|
||||
function createCollectionFrom<V = number>(...entries: [key: string, value: V][]): TestCollection<V> {
|
||||
function createCollectionFrom<Value = number>(...entries: [key: string, value: Value][]): TestCollection<Value> {
|
||||
return new Collection(entries);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user