UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

61 lines 1.69 kB
import { Endpoint } from '../models'; import config from '../../config'; declare const _default: Endpoint<{ outgoing: Pick<(typeof config)["storage"], "history">; }, import("../models").IEndpointSchema<{ outgoing: Pick<(typeof config)["storage"], "history">; }>> & { http: { readonly method: "GET"; readonly path: "/config"; }; } & { io: { readonly path: "config:get"; }; } & { handler: ({ reply }: (import("..").InternalHttpRequestContext<Pick<{ readonly statics: { readonly public: { readonly dir: string; }; }; readonly routes: { readonly internal: { readonly root: "/_system"; readonly gui: "/gui"; }; }; readonly history: { readonly limit: 100; }; readonly logger: { readonly level: import("../..").TLoggerLevel; }; }, "history">> | import("..").InternalSocketIoRequestContext<Pick<{ readonly statics: { readonly public: { readonly dir: string; }; }; readonly routes: { readonly internal: { readonly root: "/_system"; readonly gui: "/gui"; }; }; readonly history: { readonly limit: 100; }; readonly logger: { readonly level: import("../..").TLoggerLevel; }; }, "history">>) & { incoming: { data?: unknown; query?: unknown; }; }) => void; }; export default _default; //# sourceMappingURL=config.get.endpoint.d.ts.map