@kovalenko/http-request-cache
Version:
TS decorator for caching logic of API calls.
6 lines (5 loc) • 460 B
TypeScript
import { HttpCacheOptions } from './http-cache-options';
import { Observable } from 'rxjs';
declare type HttpRequestCacheMethod = (...args: any[]) => Observable<any>;
export declare const HttpRequestCache: <T extends Record<string, any>>(optionsHandler?: (obj: T, ...args: any[]) => HttpCacheOptions) => (target: T, methodName: string, descriptor: TypedPropertyDescriptor<HttpRequestCacheMethod>) => TypedPropertyDescriptor<HttpRequestCacheMethod>;
export {};