1 | import type { Handler } from 'aws-lambda';
|
2 | import { ApolloServer as ApolloServerExpress, ExpressContext, GetMiddlewareOptions } from 'apollo-server-express';
|
3 | import type { GraphQLOptions } from 'apollo-server-core';
|
4 | import express from 'express';
|
5 | import { getCurrentInvoke } from '@vendia/serverless-express';
|
6 | export interface CreateHandlerOptions {
|
7 | expressAppFromMiddleware?: (middleware: express.RequestHandler) => express.Application;
|
8 | expressGetMiddlewareOptions?: GetMiddlewareOptions;
|
9 | }
|
10 | export interface LambdaContextFunctionParams {
|
11 | event: ReturnType<typeof getCurrentInvoke>['event'];
|
12 | context: ReturnType<typeof getCurrentInvoke>['context'];
|
13 | express: ExpressContext;
|
14 | }
|
15 | export declare class ApolloServer extends ApolloServerExpress<LambdaContextFunctionParams> {
|
16 | protected serverlessFramework(): boolean;
|
17 | createHandler<TEvent = any, TResult = any>(options?: CreateHandlerOptions): Handler<TEvent, TResult>;
|
18 | createGraphQLServerOptions(req: express.Request, res: express.Response): Promise<GraphQLOptions>;
|
19 | }
|
20 |
|
\ | No newline at end of file |