@forge/cache
1.0.261.0.26-experimental-04cc2b9
out/cache.d.ts~
out/cache.d.tsModified+4−4
Index: package/out/cache.d.ts
===================================================================
--- package/out/cache.d.ts
+++ package/out/cache.d.ts
@@ -1,17 +1,17 @@
import { RequestInit, Response as nodeFetchResponse } from 'node-fetch';
import { TunnelCache } from './tunnel';
import { IForgeCache } from './interfaces/cache';
-export declare type Response = Pick<nodeFetchResponse, 'text' | 'ok' | 'status'>;
-export declare type ScanResult = {
+export type Response = Pick<nodeFetchResponse, 'text' | 'ok' | 'status'>;
+export type ScanResult = {
cursor: string;
keys: string[];
};
export declare class ApiError extends Error {
readonly status: number;
readonly code: string;
- readonly data?: any;
- constructor(status: number, code: string, message: string, data?: any);
+ readonly data?: any | undefined;
+ constructor(status: number, code: string, message: string, data?: any | undefined);
}
export declare function getResponseBody(response: Response): Promise<any>;
export declare class Cache implements IForgeCache {
private client;