Sha256: a01f1c314c6df03dd2a2a3a3a90be038ee92e5003150bb4b6199348031b43227

Contents?: true

Size: 765 Bytes

Versions: 2

Compression:

Stored size: 765 Bytes

Contents

import LinkedNode from './linked-node';
declare class LinkedList<T extends LinkedNode> {
    head: T | null;
    tail: T | null;
    length: number;
    constructor();
    append(...nodes: T[]): void;
    contains(node: T): boolean;
    insertBefore(node: T | null, refNode: T | null): void;
    offset(target: T): number;
    remove(node: T): void;
    iterator(curNode?: T | null): () => T | null;
    find(index: number, inclusive?: boolean): [T | null, number];
    forEach(callback: (cur: T) => void): void;
    forEachAt(index: number, length: number, callback: (cur: T, offset: number, length: number) => void): void;
    map(callback: (cur: T | null) => any): any[];
    reduce<M>(callback: (memo: M, cur: T) => M, memo: M): M;
}
export default LinkedList;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_modular_admin-1.0.0 app/assets/node_modules/parchment/dist/src/collection/linked-list.d.ts
rails_modular_admin-0.4.0 app/assets/node_modules/parchment/dist/src/collection/linked-list.d.ts