UNPKG

alapa

Version:

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

26 lines (25 loc) 697 B
/** * A generic list class that extends the TypeScript Array class, * allowing storage of items of type V in an array-like structure. * * @template V - The type of items in the list. */ export declare class List<V> extends Array<V> { /** * Creates a new List with optional initial items. * * @param initialItems - An optional array of initial items. */ constructor(...initialItems: V[]); /** * Removes an item from the list by element. * * @param element - The element to remove. * @returns The updated list after removal. */ remove(element: V): List<V>; /** * Clears all items from the list. */ clear(): void; }