mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
fix last collection type for return
This commit is contained in:
@@ -20,7 +20,7 @@ export class Collection<K, V> extends Map<K, V> {
|
|||||||
return this.values().next().value;
|
return this.values().next().value;
|
||||||
}
|
}
|
||||||
|
|
||||||
last() {
|
last(): V {
|
||||||
return [...this.values()][this.size - 1];
|
return [...this.values()][this.size - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user