Skip to content

Commit d3335ae

Browse files
committed
minor cleanup
1 parent 1bbb262 commit d3335ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/analysis/buildTypeWeights.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import {
2727
Variables,
2828
Type,
2929
Fields,
30-
FieldWeight,
3130
FieldMap,
3231
} from '../@types/buildTypeWeights';
3332

@@ -244,7 +243,7 @@ function parseTypes(schema: GraphQLSchema, typeWeights: TypeWeightSet): TypeWeig
244243

245244
// types is an array mapping each field name to it's respective output type
246245
const types: FieldMap[] = unionType.getTypes().map((objectType: GraphQLObjectType) => {
247-
const fields: GraphQLFieldMap<any, any> = objectType.getFields();
246+
const fields: GraphQLFieldMap<unknown, unknown> = objectType.getFields();
248247

249248
const fieldMap: FieldMap = {};
250249
Object.keys(fields).forEach((field: string) => {

0 commit comments

Comments
 (0)