Skip to content

Commit

Permalink
fix(graphql-request): Exporting GraphQLRequestModuleConfig interface …
Browse files Browse the repository at this point in the history
…to be able to use it when creating config classes. (#539)

Co-authored-by: Rodrigo <monstawoodwow@gmail.com>
  • Loading branch information
vizio360 and underfisk authored Dec 14, 2022
1 parent bdbd274 commit 5d2b640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/graphql-request/src/graphql-request.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { Module } from '@nestjs/common';
import { GraphQLClient } from 'graphql-request';
import {
GraphQLClientConfigInject,
GraphQLClientInject,
GraphQLClientInject
} from './graphql-request.constants';

type GraphQLClientConstructorParams = ConstructorParameters<
typeof GraphQLClient
>;

interface GraphQLRequestModuleConfig {
export interface GraphQLRequestModuleConfig {
endpoint: GraphQLClientConstructorParams[0];
options?: GraphQLClientConstructorParams[1];
}
Expand Down

0 comments on commit 5d2b640

Please sign in to comment.