prisma-client-lib
Advanced tools
Comparing version 1.20.0-alpha.24 to 1.20.0-alpha.27
@@ -336,3 +336,3 @@ "use strict"; | ||
} | ||
return this.renderInterfaceWrapper("" + type.name + (node ? 'Node' : ''), type.description, interfaces, fieldDefinition, !node, subscription); | ||
return this.renderInterfaceWrapper("" + type.name + (node ? 'Promise' : ''), type.description, interfaces, fieldDefinition, !node, subscription); | ||
}; | ||
@@ -376,3 +376,3 @@ TypescriptGenerator.prototype.renderFieldName = function (field, node) { | ||
if ((node || isList) && !isScalar && !addSubscription) { | ||
typeString += "Node"; | ||
typeString += "Promise"; | ||
} | ||
@@ -460,4 +460,4 @@ if (addSubscription) { | ||
name: subscription | ||
? "Promise<AsyncIterator<" + typeName + "Node>>" | ||
: "Promise<" + typeName + "Node>", | ||
? "Promise<AsyncIterator<" + typeName + ">>" | ||
: "Promise<" + typeName + ">", | ||
}, | ||
@@ -473,3 +473,3 @@ { | ||
? "export type " + typeName + " = AtLeastOne<{\n " + fieldDefinition.replace('?:', ':') + "\n }>" | ||
: "export interface " + typeName + (subscription ? 'Subscription' : '') + (actualInterfaces.length > 0 | ||
: "export interface " + typeName + (promise ? 'Promise' : '') + (subscription ? 'Subscription' : '') + (actualInterfaces.length > 0 | ||
? " extends " + actualInterfaces.map(function (i) { return i.name; }).join(', ') | ||
@@ -476,0 +476,0 @@ : '') + " {\n " + fieldDefinition + "\n }"); |
{ | ||
"name": "prisma-client-lib", | ||
"version": "1.20.0-alpha.24", | ||
"version": "1.20.0-alpha.27", | ||
"author": "Tim Suchanek <suchanek@prisma.io>", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
190609