初始化项目,添加 favicon.ico、screenshot.png 等静态资源文件,以及 Vue、TailwindCSS 等依赖项。配置了 Vite 和 PostCSS,并生成了基本的项目结构。
15 lines
212 B
TypeScript
15 lines
212 B
TypeScript
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;
|