Shreyan
Clean initial commit without large files
7f21468
raw
history blame
212 Bytes
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;