UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

47 lines 1.04 kB
import { Endpoint } from '../models'; interface IRedisResult { count: number; } declare const _default: Endpoint<{ incoming: { data: { prefix?: string; }; }; outgoing: { redis?: IRedisResult; }; }, import("../models").IEndpointSchema<{ incoming: { data: { prefix?: string; }; }; outgoing: { redis?: IRedisResult; }; }>> & { http: { readonly method: "DELETE"; readonly path: "/cache"; }; } & { io: { readonly path: "cache:delete"; }; } & { handler: ({ incoming, reply, server }: (import("..").InternalHttpRequestContext<{ redis?: IRedisResult; }> | import("..").InternalSocketIoRequestContext<{ redis?: IRedisResult; }>) & { incoming: { data?: { prefix?: string; } | undefined; query?: unknown; }; }) => Promise<void>; }; export default _default; //# sourceMappingURL=cache.delete.endpoint.d.ts.map