UNPKG

@rws-air/utils

Version:
30 lines 1.22 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Stack = void 0; const collection_1 = __importDefault(require("@discordjs/collection")); /** * A Map with additional utility methods. This can be used throughout Rijkswaterstaat projects rather than * Arrays of objects for anything that has an ID, for significantly improved performance and ease-of-use. * * @extends {Collection} ([GitHub Page](https://github.com/discordjs/collection)) which itself adds a lot of utility methods * @extends {Map} ([MDN page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)) */ class Stack extends collection_1.default { // eslint-disable-next-line no-useless-constructor constructor(entries) { super(entries); } /** * Creates a JSON representation of the Stack * This is used internally by Redux and ensures that Stacks can be used for Redux. */ toJSON() { return this.array(); } } exports.Stack = Stack; Stack.default = Stack; //# sourceMappingURL=Stack.js.map