Comparing version 0.0.4 to 0.0.5
# @gqlb/cli | ||
## 0.0.5 | ||
### Patch Changes | ||
- c534d6c: Optional fragment masking | ||
## 0.0.4 | ||
@@ -4,0 +10,0 @@ |
@@ -63,9 +63,2 @@ "use strict"; | ||
for (const field of fields) { | ||
// const ifaceName = `Builder_${name}_field_${field.name}`; | ||
// const iface: InterfaceDeclarationStructure = { | ||
// kind: StructureKind.Interface, | ||
// name: ifaceName, | ||
// callSignatures: [], | ||
// }; | ||
// builders[field.name] = iface; | ||
const comment = { | ||
@@ -247,3 +240,3 @@ kind: ts_morph_1.StructureKind.JSDoc, | ||
name: "Fragment", | ||
constraint: "FragmentDefinition<any, any, any>", | ||
constraint: "FragmentDefinition", | ||
}, | ||
@@ -265,3 +258,3 @@ ], | ||
name: "Fragment", | ||
constraint: "FragmentDefinitionWithVariables<any, any, any>", | ||
constraint: "FragmentDefinitionWithVariables", | ||
}, | ||
@@ -276,3 +269,3 @@ ], | ||
name: "variables", | ||
type: "Fragment extends FragmentDefinitionWithVariables<any, any, infer V, any> ? V : never", | ||
type: "Fragment extends FragmentDefinitionWithVariables<any, any, any, infer V, any> ? V : never", | ||
}, | ||
@@ -710,3 +703,3 @@ ], | ||
], | ||
returnType: `FragmentDefinition<${possibleTypes}, "${type.name}", SelectionSetOutput<Result, ${possibleTypes}>>`, | ||
returnType: `FragmentDefinition<Name, ${possibleTypes}, "${type.name}", SelectionSetOutput<Result, ${possibleTypes}>>`, | ||
}); | ||
@@ -749,3 +742,3 @@ callSignatures.push({ | ||
], | ||
returnType: `FragmentDefinitionWithVariables<${possibleTypes}, "${type.name}", { | ||
returnType: `FragmentDefinitionWithVariables<Name, ${possibleTypes}, "${type.name}", { | ||
[K in keyof Variables]: AllowNonNullableVariables<ParseVariableDef<Variables[K]>> | ||
@@ -752,0 +745,0 @@ }, SelectionSetOutput<Result, ${possibleTypes}>, { |
{ | ||
"name": "@gqlb/cli", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -97,11 +97,2 @@ import fs from "fs/promises"; | ||
for (const field of fields) { | ||
// const ifaceName = `Builder_${name}_field_${field.name}`; | ||
// const iface: InterfaceDeclarationStructure = { | ||
// kind: StructureKind.Interface, | ||
// name: ifaceName, | ||
// callSignatures: [], | ||
// }; | ||
// builders[field.name] = iface; | ||
const comment: JSDocStructure = { | ||
@@ -305,3 +296,3 @@ kind: StructureKind.JSDoc, | ||
name: "Fragment", | ||
constraint: "FragmentDefinition<any, any, any>", | ||
constraint: "FragmentDefinition", | ||
}, | ||
@@ -323,3 +314,3 @@ ], | ||
name: "Fragment", | ||
constraint: "FragmentDefinitionWithVariables<any, any, any>", | ||
constraint: "FragmentDefinitionWithVariables", | ||
}, | ||
@@ -334,3 +325,3 @@ ], | ||
name: "variables", | ||
type: "Fragment extends FragmentDefinitionWithVariables<any, any, infer V, any> ? V : never", | ||
type: "Fragment extends FragmentDefinitionWithVariables<any, any, any, infer V, any> ? V : never", | ||
}, | ||
@@ -812,3 +803,3 @@ ], | ||
], | ||
returnType: `FragmentDefinition<${possibleTypes}, "${type.name}", SelectionSetOutput<Result, ${possibleTypes}>>`, | ||
returnType: `FragmentDefinition<Name, ${possibleTypes}, "${type.name}", SelectionSetOutput<Result, ${possibleTypes}>>`, | ||
}); | ||
@@ -851,3 +842,3 @@ callSignatures.push({ | ||
], | ||
returnType: `FragmentDefinitionWithVariables<${possibleTypes}, "${type.name}", { | ||
returnType: `FragmentDefinitionWithVariables<Name, ${possibleTypes}, "${type.name}", { | ||
[K in keyof Variables]: AllowNonNullableVariables<ParseVariableDef<Variables[K]>> | ||
@@ -854,0 +845,0 @@ }, SelectionSetOutput<Result, ${possibleTypes}>, { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53
130885
2804