From 83354b2b88218090988dd6e526b0a2505b57e0f1 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 6 Apr 2023 22:18:28 +0200 Subject: Updated 5 files and added 1110 files (automated) --- .../node_modules/cacheable-request/dist/index.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 includes/external/addressbook/node_modules/cacheable-request/dist/index.d.ts (limited to 'includes/external/addressbook/node_modules/cacheable-request/dist/index.d.ts') diff --git a/includes/external/addressbook/node_modules/cacheable-request/dist/index.d.ts b/includes/external/addressbook/node_modules/cacheable-request/dist/index.d.ts new file mode 100644 index 0000000..123a8e3 --- /dev/null +++ b/includes/external/addressbook/node_modules/cacheable-request/dist/index.d.ts @@ -0,0 +1,17 @@ +import { RequestFn, StorageAdapter, CacheResponse, CacheValue, CacheableOptions, Emitter } from './types.js'; +type Func = (...args: any[]) => any; +declare class CacheableRequest { + cache: StorageAdapter; + cacheRequest: RequestFn; + hooks: Map; + constructor(cacheRequest: RequestFn, cacheAdapter?: StorageAdapter | string); + request: () => (options: CacheableOptions, cb?: (response: CacheResponse) => void) => Emitter; + addHook: (name: string, fn: Func) => void; + removeHook: (name: string) => boolean; + getHook: (name: string) => Func; + runHook: (name: string, ...args: any[]) => Promise; +} +export default CacheableRequest; +export * from './types.js'; +export declare const onResponse = "onResponse"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file -- cgit