UNPKG

@loom-io/core

Version:

A file system wrapper for Node.js and Bun

14 lines (13 loc) 419 B
export declare class ListItem<T> { content: T; protected before: ListItem<T> | undefined; protected after: ListItem<T> | undefined; constructor(content: T); getFirst(): ListItem<T>; getLast(): ListItem<T>; addBefore(item: ListItem<T>): ListItem<T>; addAfter(item: ListItem<T>): ListItem<T>; remove(): void; prev(): ListItem<T> | undefined; next(): ListItem<T> | undefined; }