Skip to content

Commit 180a32c

Browse files
committed
chore: remove unnecessary type cast
1 parent 2c27a08 commit 180a32c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/dependent-type-utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ limitations under the License.
1313

1414
import {
1515
GraphQLSchema,
16-
GraphQLUnionType,
1716
isUnionType,
1817
Kind,
1918
TypeDefinitionNode,
@@ -67,9 +66,7 @@ export function getDependentUnionsForType(
6766
config: CodegenConfigWithDefaults,
6867
) {
6968
const typeMap = schema.getTypeMap();
70-
const unions = Object.values(typeMap).filter((type) =>
71-
isUnionType(type),
72-
) as GraphQLUnionType[];
69+
const unions = Object.values(typeMap).filter((type) => isUnionType(type));
7370
return unions
7471
.filter((union) =>
7572
union.getTypes().some((type) => type.name === node.name.value),

0 commit comments

Comments
 (0)