unreal.js
Version:
A pak reader for games like VALORANT & Fortnite written in Node.JS
23 lines (22 loc) • 680 B
TypeScript
import Collection from "@discordjs/collection";
/**
* Map used in unreal.js
* This map uses <object>.equals() for looking up entries
* If the method doesn't exists, it falls back to: ===
* This can be useful if the key is not a primitive
* @extends {Collection}
*/
export declare class UnrealMap<K, V> extends Collection<K, V> {
/**
* Gets an entry
* @param {any} key Key to lookup
* @returns {V | undefined} Entry
*/
get(key: K): V | undefined;
/**
* Deletes an entry
* @param {any} key Key of the entry to delete
* @returns {boolean} Whether the entry got deleted
*/
delete(key: K): boolean;
}