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:
Almeida
2023-11-12 17:21:51 +00:00
committed by GitHub
parent 4ff3ea4a1b
commit 975d5f18ae
34 changed files with 1104 additions and 895 deletions

View File

@@ -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);
}