@homebound/graphql-typescript-response-factories
Advanced tools
Comparing version 2.37.0 to 2.38.0
@@ -94,4 +94,11 @@ "use strict"; | ||
error: data instanceof Error ? data : undefined, | ||
}; | ||
} as any; | ||
}`; | ||
// The ^ `as any` is because when queries return type unions, i.e. `items { | ||
// ...on Project {} ...on Trade {} }`, the type union has `{ __typename: "Project" } | | ||
// { __typename: "Trade" }` where `__typename` is required, but currently the POJOs | ||
// have just `interface Project { __typename?: "Project" }`, which does not match. | ||
// | ||
// We could turn on `nonOptionalTypeName` but it breaks a lot of existing tests in | ||
// `internal-frontend`, that arguably should be using factories to create their data. | ||
} | ||
@@ -98,0 +105,0 @@ const mockedResponse = ` |
{ | ||
"name": "@homebound/graphql-typescript-response-factories", | ||
"version": "2.37.0", | ||
"version": "2.38.0", | ||
"main": "./build/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./build/", |
Sorry, the diff of this file is not supported yet
12761
138