提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
212 B

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;