fix: message for missing resolveType in interfaces (#495)

This commit is contained in:
Santi Albo 2020-08-26 21:42:26 +02:00 committed by GitHub
parent 0ee644b234
commit 3c38a65eb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -841,7 +841,7 @@ export class SchemaBuilder {
})
}
if (!resolveType) {
resolveType = this.missingResolveType(config.name, 'union')
resolveType = this.missingResolveType(config.name, 'interface')
}
if (config.rootTyping) {
this.rootTypings[config.name] = config.rootTyping

View File

@ -13,6 +13,6 @@ Object {
exports[`interfaceType logs error when resolveType is not provided for an interface 1`] = `
Array [
[Error: Missing resolveType for the Node union. Be sure to add one in the definition block for the type, or t.resolveType(() => null) if you don't want or need to implement.],
[Error: Missing resolveType for the Node interface. Be sure to add one in the definition block for the type, or t.resolveType(() => null) if you don't want or need to implement.],
]
`;