Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
udamir committed Sep 19, 2023
1 parent cbcf821 commit 56e02d7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gqlapi",
"version": "0.4.5",
"version": "0.4.6",
"description": "The GraphAPI Specification Repository",
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
Expand Down
1 change: 0 additions & 1 deletion src/buildFromIntrospection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ const transformObjectType = (objectType: IntrospectionObjectType | Introspection
const transfromUnionType = (unionType: IntrospectionUnionType, options: BuildOptions): GraphApiUnion => {
return {
...transformNamedType(unionType),
type: "object",
oneOf: unionType.possibleTypes.map((item) => transformType2Ref(item, options, true))
}
}
Expand Down
1 change: 0 additions & 1 deletion src/buildFromSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ const transformObjectType = (objectType: GraphQLObjectType | GraphQLInterfaceTyp
const transfromUnionType = (unionType: GraphQLUnionType, options: BuildOptions): GraphApiUnion => {
return {
...transformNamedType(unionType),
type: "object",
oneOf: unionType.getTypes().map((item) => transformType2Ref(item, options, true))
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/graphapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export interface GraphApiInterface extends GraphApiObject {

// UNION
export interface GraphApiUnion extends GraphSchema {
// kind = "UNION"
type: "object"

// one of objects
oneOf: GraphSchema[]
}
Expand Down

0 comments on commit 56e02d7

Please sign in to comment.