@ryusei/code
Version:
<div align="center"> <a href="https://code.ryuseijs.com"> <img alt="RyuseiCode" src="https://code.ryuseijs.com/images/svg/logo.svg" width="70"> </a>
36 lines • 1.06 kB
TypeScript
/**
* The abstract class for implementing an ArrayLike class.
*
* @since 0.1.0
*
* @typeParam T - A type for each element.
*/
export declare abstract class AbstractArrayLike<T> implements ArrayLike<T> {
/**
* The length of elements.
*/
length: number;
/**
* The index signature for behaving an array-like object.
*/
[index: number]: T;
/**
* Implements the `push` method by using native method.
*
* @param items - Items to push.
*/
push(...items: T[]): void;
/**
* Implements the `splice` method by using native method.
*
* @param start - A start index.
* @param deleteCount - The number of items to delete from the start index.
* @param items - New items to insert at the start index.
*/
splice(start: number, deleteCount?: number, ...items: T[]): void;
/**
* Clears elements.
*/
clear(): void;
}
//# sourceMappingURL=../../../../src/js/classes/AbstractArrayLike/AbstractArrayLike.d.ts.map