Files
klz-cables.com/.pnpm-store/v10/files/b3/3e46f0536b3bbab9f6f56e8c90f18cf3df4a5027719ed6fe7188476e414c9cdd875ac4fc0c942f6968a9a9aedb3425f66f9b9f2e3fab080282a5a95ae05b3f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

32 lines
1.2 KiB
Plaintext

/// <reference types="node" />
import { HandlerOptions as HttpHandlerOptions } from './http';
import { OperationContext } from '../handler';
/**
* Handler options when using the node adapter.
*
* @category Server/node
*
* @deprecated Please use {@link use/http.HandlerOptions | http} or {@link use/http2.HandlerOptions | http2} adapters instead.
*/
export type HandlerOptions<Context extends OperationContext = undefined> = HttpHandlerOptions<Context>;
/**
* Create a GraphQL over HTTP spec compliant request handler for
* the Node environment.
*
* ```js
* import http from 'http';
* import { createHandler } from 'graphql-http/lib/use/node';
* import { schema } from './my-graphql-schema';
*
* const server = http.createServer(createHandler({ schema }));
*
* server.listen(4000);
* console.log('Listening to port 4000');
* ```
*
* @category Server/node
*
* @deprecated Please use {@link use/http.createHandler | http} or {@link use/http2.createHandler | http2} adapters instead.
*/
export declare function createHandler<Context extends OperationContext = undefined>(options: HandlerOptions<Context>): (req: import("http").IncomingMessage, res: import("http").ServerResponse<import("http").IncomingMessage>) => Promise<void>;