Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts: Switch extension values to unknown to match Flow types #3006

Merged
merged 1 commit into from Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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