mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:38:02 +00:00
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;
|