source:
frontend/node_modules/reusify/reusify.d.ts
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 212 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | interface Node { |
| 2 | next: Node | null; | |
| 3 | } | |
| 4 | ||
| 5 | interface Constructor<T> { | |
| 6 | new(): T; | |
| 7 | } | |
| 8 | ||
| 9 | declare function reusify<T extends Node>(constructor: Constructor<T>): { | |
| 10 | get(): T; | |
| 11 | release(node: T): void; | |
| 12 | }; | |
| 13 | ||
| 14 | export = reusify; |
Note:
See TracBrowser
for help on using the repository browser.
