Spaces:
Sleeping
Sleeping
File size: 212 Bytes
7f21468 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
interface Node {
next: Node | null;
}
interface Constructor<T> {
new(): T;
}
declare function reusify<T extends Node>(constructor: Constructor<T>): {
get(): T;
release(node: T): void;
};
export = reusify;
|