UNPKG

1.6 kBTypeScriptView Raw
1import { DynamicModule, OnModuleDestroy, OnModuleInit } from '@nestjs/common/interfaces';
2import { HttpAdapterHost } from '@nestjs/core';
3import { AbstractGraphQLDriver } from './drivers/abstract-graphql.driver';
4import { GraphQLSchemaHost } from './graphql-schema.host';
5import { GraphQLTypesLoader } from './graphql-types.loader';
6import { GqlModuleAsyncOptions, GqlModuleOptions, GqlOptionsFactory } from './interfaces/gql-module-options.interface';
7export declare class GraphQLModule<TAdapter extends AbstractGraphQLDriver = AbstractGraphQLDriver> implements OnModuleInit, OnModuleDestroy {
8 private readonly httpAdapterHost;
9 private readonly options;
10 private readonly _graphQlAdapter;
11 private readonly graphQlTypesLoader;
12 private readonly gqlSchemaHost;
13 private static readonly logger;
14 private readonly metadataLoader;
15 get graphQlAdapter(): TAdapter;
16 constructor(httpAdapterHost: HttpAdapterHost, options: GqlModuleOptions, _graphQlAdapter: AbstractGraphQLDriver, graphQlTypesLoader: GraphQLTypesLoader, gqlSchemaHost: GraphQLSchemaHost);
17 onModuleDestroy(): Promise<void>;
18 static forRoot<TOptions extends Record<string, any> = GqlModuleOptions>(options?: TOptions): DynamicModule;
19 static forRootAsync<TOptions extends Record<string, any> = GqlModuleOptions>(options: GqlModuleAsyncOptions<TOptions, GqlOptionsFactory<TOptions>>): DynamicModule;
20 private static createAsyncProviders;
21 private static createAsyncOptionsProvider;
22 onModuleInit(): Promise<void>;
23 private static assertDriver;
24}
25//# sourceMappingURL=graphql.module.d.ts.map
\No newline at end of file