Files
Job_App/node_modules/apollo-server/dist/index.d.ts
2025-03-28 12:30:19 +11:00

31 lines
1008 B
TypeScript

/// <reference types="node" />
import express from 'express';
import http from 'http';
import { ApolloServer as ApolloServerBase, CorsOptions, ApolloServerExpressConfig } from 'apollo-server-express';
export * from './exports';
export interface ServerInfo {
address: string;
family: string;
url: string;
subscriptionsUrl: string;
port: number | string;
subscriptionsPath: string;
server: http.Server;
}
export declare class ApolloServer extends ApolloServerBase {
private httpServer?;
private cors?;
private onHealthCheck?;
private stopGracePeriodMillis;
constructor(config: ApolloServerExpressConfig & {
cors?: CorsOptions | boolean;
onHealthCheck?: (req: express.Request) => Promise<any>;
stopGracePeriodMillis?: number;
});
private createServerInfo;
applyMiddleware(): void;
start(): Promise<void>;
listen(...opts: Array<any>): Promise<ServerInfo>;
stop(): Promise<void>;
}
//# sourceMappingURL=index.d.ts.map