Skip to content

Commit

Permalink
ts: Switch extension values to unknown to match Flow types (#3006)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Mar 30, 2021
1 parent 47e6bd1 commit 5974fef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/type/definition.d.ts
Expand Up @@ -281,7 +281,7 @@ export type ThunkObjMap<T> = ObjMap<T> | (() => ObjMap<T>);
* an object which can contain all the values you need.
*/
export interface GraphQLScalarTypeExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

/**
Expand Down Expand Up @@ -367,7 +367,7 @@ export interface GraphQLScalarTypeConfig<TInternal, TExternal> {
* you may find them useful.
*/
export interface GraphQLObjectTypeExtensions<_TSource = any, _TContext = any> {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

/**
Expand Down Expand Up @@ -502,7 +502,7 @@ export interface GraphQLFieldExtensions<
_TContext,
_TArgs = { [argName: string]: any }
> {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

export interface GraphQLFieldConfig<
Expand Down Expand Up @@ -534,7 +534,7 @@ export type GraphQLFieldConfigArgumentMap = ObjMap<GraphQLArgumentConfig>;
* an object which can contain all the values you need.
*/
export interface GraphQLArgumentExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

export interface GraphQLArgumentConfig {
Expand Down Expand Up @@ -592,7 +592,7 @@ export type GraphQLFieldMap<TSource, TContext> = ObjMap<
* an object which can contain all the values you need.
*/
export interface GraphQLInterfaceTypeExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

/**
Expand Down Expand Up @@ -664,7 +664,7 @@ export interface GraphQLInterfaceTypeConfig<TSource, TContext> {
* an object which can contain all the values you need.
*/
export interface GraphQLUnionTypeExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

/**
Expand Down Expand Up @@ -738,7 +738,7 @@ export interface GraphQLUnionTypeConfig<TSource, TContext> {
* an object which can contain all the values you need.
*/
export interface GraphQLEnumTypeExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

/**
Expand Down Expand Up @@ -811,7 +811,7 @@ export type GraphQLEnumValueConfigMap = ObjMap<GraphQLEnumValueConfig>;
* an object which can contain all the values you need.
*/
export interface GraphQLEnumValueExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

export interface GraphQLEnumValueConfig {
Expand Down Expand Up @@ -841,7 +841,7 @@ export interface GraphQLEnumValue {
* an object which can contain all the values you need.
*/
export interface GraphQLInputObjectTypeExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/type/directives.d.ts
Expand Up @@ -24,7 +24,7 @@ export function assertDirective(directive: unknown): GraphQLDirective;
* an object which can contain all the values you need.
*/
export interface GraphQLDirectiveExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/type/schema.d.ts
Expand Up @@ -30,7 +30,7 @@ export function assertSchema(schema: unknown): GraphQLSchema;
* an object which can contain all the values you need.
*/
export interface GraphQLSchemaExtensions {
[attributeName: string]: any;
[attributeName: string]: unknown;
}

/**
Expand Down

0 comments on commit 5974fef

Please sign in to comment.