Skip to content

Commit abccf2f

Browse files
saihajIvanGoncharov
authored andcommitted
remove record type
1 parent 87004d5 commit abccf2f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ overrides:
451451
'@typescript-eslint/ban-tslint-comment': error
452452
'@typescript-eslint/ban-types': error
453453
'@typescript-eslint/class-literal-property-style': error
454-
'@typescript-eslint/consistent-indexed-object-style': error
454+
'@typescript-eslint/consistent-indexed-object-style': off # TODO enable after TS conversion
455455
'@typescript-eslint/consistent-type-assertions':
456456
[error, { assertionStyle: as, objectLiteralTypeAssertions: never }]
457457
'@typescript-eslint/consistent-type-definitions': error

src/mutation/__tests__/mutation-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ function dummyResolve() {
1919
return { result: 1 };
2020
}
2121

22-
function wrapInSchema(
23-
mutationFields: Record<string, GraphQLFieldConfig<any, any>>,
24-
): GraphQLSchema {
22+
function wrapInSchema(mutationFields: {
23+
[field: string]: GraphQLFieldConfig<any, any>;
24+
}): GraphQLSchema {
2525
const queryType = new GraphQLObjectType({
2626
name: 'Query',
2727
fields: { dummy: { type: GraphQLInt } },

src/mutation/mutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ interface MutationConfig {
4242
name: string;
4343
description?: string;
4444
deprecationReason?: string;
45-
extensions?: Record<string, unknown>;
45+
extensions?: { [name: string]: unknown };
4646
inputFields: Thunk<GraphQLInputFieldConfigMap>;
4747
outputFields: Thunk<GraphQLFieldConfigMap<any, any>>;
4848
mutateAndGetPayload: MutationFn;

0 commit comments

Comments
 (0)