|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
334 bytes
|
| Line | |
|---|
| 1 | export default memoize;
|
|---|
| 2 | export type FunctionReturning<T> = () => T;
|
|---|
| 3 | /**
|
|---|
| 4 | * @template T
|
|---|
| 5 | * @typedef {() => T} FunctionReturning
|
|---|
| 6 | */
|
|---|
| 7 | /**
|
|---|
| 8 | * @template T
|
|---|
| 9 | * @param {FunctionReturning<T>} fn memorized function
|
|---|
| 10 | * @returns {FunctionReturning<T>} new function
|
|---|
| 11 | */
|
|---|
| 12 | declare function memoize<T>(fn: FunctionReturning<T>): FunctionReturning<T>;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.