UNPKG

@zxh19890103/wik

Version:

The world-class JavaScript library for building large-scale digital warehouse both on 2D and 3D.

23 lines (22 loc) 684 B
import { ConstructorOrFactory } from '../../interfaces'; import { Serializable } from '../../interfaces'; import { Base } from './Base.class'; import { CoreList } from './Core.class'; /** * * List for holding Base. * events: * add,remove,update,add.r,remove.r,update.r */ export declare class List<M extends Base> extends CoreList<M> implements Serializable { readonly itemKey: string; private itemC; [Symbol.iterator](): Generator<M, void, unknown>; constructor(C: ConstructorOrFactory<M>, items: M[]); fromJSON(data: any[]): this; toJSON(): void; _add(item: M): void; _remove(item: M): void; _clear(): void; create(...args: any[]): M; }