UNPKG

alapa

Version:

A cutting-edge web development framework designed to revolutionize the way developers build modern web applications.

23 lines (22 loc) 723 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Dictionary = void 0; const map_1 = require("./map"); /** * A generic dictionary class that maps keys of type K to values of type V. * It extends the Map class to utilize its functionality. * * @template K - The type of keys (string, number, or symbol). * @template V - The type of values. */ class Dictionary extends map_1.Map { /** * Creates a new Dictionary with optional initial key-value pairs. * * @param initialItems - An optional object of initial key-value pairs. */ constructor(initialItems) { super(initialItems); // Call the parent constructor } } exports.Dictionary = Dictionary;