@gamestdio/signals
Version:
Minimal Signal implementation for JavaScript.
17 lines (16 loc) • 488 B
TypeScript
import { Slot } from "./Slot";
export declare class SlotList {
static NIL: SlotList;
head: Slot;
tail: SlotList;
nonEmpty: boolean;
constructor(head: Slot, tail?: SlotList);
readonly length: number;
prepend(slot: Slot): SlotList;
append(slot: Slot): SlotList;
insertWithPriority(slot: Slot): SlotList;
filterNot(listener: Function): SlotList;
contains(listener: Function): boolean;
find(listener: Function): Slot;
toString(): string;
}