Skip to content

Commit f1f3d8e

Browse files
definition.d.ts: correct types (#3129)
1 parent 82a9a6c commit f1f3d8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type/definition.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
354354
astNode: Maybe<ObjectTypeDefinitionNode>;
355355
extensionASTNodes: ReadonlyArray<ObjectTypeExtensionNode>;
356356
constructor(config: Readonly<GraphQLObjectTypeConfig<TSource, TContext>>);
357-
getFields(): GraphQLFieldMap<any, TContext>;
357+
getFields(): GraphQLFieldMap<TSource, TContext>;
358358
getInterfaces(): Array<GraphQLInterfaceType>;
359359
toConfig(): GraphQLObjectTypeConfig<any, any> & {
360360
interfaces: Array<GraphQLInterfaceType>;
@@ -795,7 +795,7 @@ export interface GraphQLInputObjectTypeConfig {
795795
* an object which can contain all the values you need.
796796
*/
797797
export interface GraphQLInputFieldExtensions {
798-
[attributeName: string]: any;
798+
[attributeName: string]: unknown;
799799
}
800800
export interface GraphQLInputFieldConfig {
801801
description?: Maybe<string>;

0 commit comments

Comments
 (0)