Skip to content

Commit

Permalink
fix: update .d.ts for InterfaceTypeComposer
Browse files Browse the repository at this point in the history
  • Loading branch information
vladar authored and nodkz committed Mar 18, 2021
1 parent e863711 commit e7467d5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/InterfaceTypeComposer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ import {
ObjectTypeComposerArgumentConfigMapDefinition,
ObjectTypeComposerArgumentConfigDefinition,
} from './ObjectTypeComposer';
import { MaybePromise, Extensions, ExtensionsDirective, DirectiveArgs } from './utils/definitions';
import {
MaybePromise,
Extensions,
ExtensionsDirective,
DirectiveArgs,
ThunkWithSchemaComposer,
} from './utils/definitions';
import { TypeAsString, TypeDefinitionString } from './TypeMapper';
import { ThunkComposer } from './ThunkComposer';
import {
Expand All @@ -45,6 +51,10 @@ export type InterfaceTypeComposerDefinition<TSource, TContext> =

export type InterfaceTypeComposerAsObjectDefinition<TSource, TContext> = {
name: string;
interfaces?: null | ThunkWithSchemaComposer<
Array<InterfaceTypeComposerDefinition<any, TContext>>,
SchemaComposer<TContext>
>;
fields?: ObjectTypeComposerFieldConfigMapDefinition<TSource, TContext>;
resolveType?: null | GraphQLTypeResolver<TSource, TContext>;
description?: null | string;
Expand Down

0 comments on commit e7467d5

Please sign in to comment.