NineSec Team Shell
Server IP : 92.205.26.207  /  Your IP : 216.73.216.16
Web Server : Apache
System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64
User : zikryat ( 1002)
PHP Version : 8.3.23
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/zikryat/public_html/node_modules/lru-memoizer/lib/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/zikryat/public_html/node_modules/lru-memoizer/lib/async.d.ts
import { syncMemoizer } from './sync';
import { INodeStyleCallBack as CB, ResultBase, IParamsBase0, IParamsBase1, IParamsBase2, IParamsBase3, IParamsBase4, IParamsBase5, IParamsBase6 } from './util';
export interface IMemoized<T1, T2, T3, T4, T5, T6, TResult> extends ResultBase {
    (cb: CB<TResult>): void;
    (a1: T1, cb: CB<TResult>): void;
    (a1: T1, a2: T2, cb: CB<TResult>): void;
    (a1: T1, a2: T2, a3: T3, cb: CB<TResult>): void;
    (a1: T1, a2: T2, a3: T3, a4: T4, cb: CB<TResult>): void;
    (a1: T1, a2: T2, a3: T3, a4: T4, a5: T5, cb: CB<TResult>): void;
    (a1: T1, a2: T2, a3: T3, a4: T4, a5: T5, a6: T6, cb: CB<TResult>): void;
}
interface IMemoizableFunction0<TResult> {
    (cb: CB<TResult>): void;
}
interface IMemoizableFunction1<T1, TResult> {
    (a1: T1, cb: CB<TResult>): void;
}
interface IMemoizableFunction2<T1, T2, TResult> {
    (a1: T1, a2: T2, cb: CB<TResult>): void;
}
interface IMemoizableFunction3<T1, T2, T3, TResult> {
    (a1: T1, a2: T2, a3: T3, cb: CB<TResult>): void;
}
interface IMemoizableFunction4<T1, T2, T3, T4, TResult> {
    (a1: T1, a2: T2, a3: T3, a4: T4, cb: CB<TResult>): void;
}
interface IMemoizableFunction5<T1, T2, T3, T4, T5, TResult> {
    (a1: T1, a2: T2, a3: T3, a4: T4, a5: T5, cb: CB<TResult>): void;
}
interface IMemoizableFunction6<T1, T2, T3, T4, T5, T6, TResult> {
    (a1: T1, a2: T2, a3: T3, a4: T4, a5: T5, a6: T6, cb: CB<TResult>): void;
}
interface AsyncParams0<TResult> extends IParamsBase0<TResult> {
    load: IMemoizableFunction0<TResult>;
}
interface AsyncParams1<T1, TResult> extends IParamsBase1<T1, TResult> {
    load: IMemoizableFunction1<T1, TResult>;
}
interface AsyncParams2<T1, T2, TResult> extends IParamsBase2<T1, T2, TResult> {
    load: IMemoizableFunction2<T1, T2, TResult>;
}
interface AsyncParams3<T1, T2, T3, TResult> extends IParamsBase3<T1, T2, T3, TResult> {
    load: IMemoizableFunction3<T1, T2, T3, TResult>;
}
interface AsyncParams4<T1, T2, T3, T4, TResult> extends IParamsBase4<T1, T2, T3, T4, TResult> {
    load: IMemoizableFunction4<T1, T2, T3, T4, TResult>;
}
interface AsyncParams5<T1, T2, T3, T4, T5, TResult> extends IParamsBase5<T1, T2, T3, T4, T5, TResult> {
    load: IMemoizableFunction5<T1, T2, T3, T4, T5, TResult>;
}
interface AsyncParams6<T1, T2, T3, T4, T5, T6, TResult> extends IParamsBase6<T1, T2, T3, T4, T5, T6, TResult> {
    /**
     * The function that loads the resource when is not in the cache.
     */
    load: IMemoizableFunction6<T1, T2, T3, T4, T5, T6, TResult>;
}
declare function asyncMemoizer<TResult>(options: AsyncParams0<TResult>): IMemoized<unknown, unknown, unknown, unknown, unknown, unknown, TResult>;
declare namespace asyncMemoizer {
    var sync: typeof syncMemoizer;
}
declare function asyncMemoizer<T1, TResult>(options: AsyncParams1<T1, TResult>): IMemoized<T1, unknown, unknown, unknown, unknown, unknown, TResult>;
declare namespace asyncMemoizer {
    var sync: typeof syncMemoizer;
}
declare function asyncMemoizer<T1, T2, TResult>(options: AsyncParams2<T1, T2, TResult>): IMemoized<T1, T2, unknown, unknown, unknown, unknown, TResult>;
declare namespace asyncMemoizer {
    var sync: typeof syncMemoizer;
}
declare function asyncMemoizer<T1, T2, T3, TResult>(options: AsyncParams3<T1, T2, T3, TResult>): IMemoized<T1, T2, T3, unknown, unknown, unknown, TResult>;
declare namespace asyncMemoizer {
    var sync: typeof syncMemoizer;
}
declare function asyncMemoizer<T1, T2, T3, T4, TResult>(options: AsyncParams4<T1, T2, T3, T4, TResult>): IMemoized<T1, T2, T3, T4, unknown, unknown, TResult>;
declare namespace asyncMemoizer {
    var sync: typeof syncMemoizer;
}
declare function asyncMemoizer<T1, T2, T3, T4, T5, TResult>(options: AsyncParams5<T1, T2, T3, T4, T5, TResult>): IMemoized<T1, T2, T3, T4, T5, unknown, TResult>;
declare namespace asyncMemoizer {
    var sync: typeof syncMemoizer;
}
declare function asyncMemoizer<T1, T2, T3, T4, T5, T6, TResult>(options: AsyncParams6<T1, T2, T3, T4, T5, T6, TResult>): IMemoized<T1, T2, T3, T4, T5, T6, TResult>;
declare namespace asyncMemoizer {
    var sync: typeof syncMemoizer;
}
export { asyncMemoizer };

NineSec Team - 2022