Skip to content

Commit 5a71502

Browse files
author
Daniel Volquardsen
committed
t
1 parent 8a38d6c commit 5a71502

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/format/Operation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function formatOperation(operation: OperationIR): string {
5151
)},${_snake2Pascal(`${operationDataPrefix}_variables`)}>,
5252
MutationResult<${_snake2Pascal(`${operationDataPrefix}_data`)}>
5353
]{
54-
//@ts-ignore
54+
// @ts-ignore
5555
return use${_snake2Pascal(
5656
operationType
5757
)}(${operationName}GqlDocument, options);

src/format/Type.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export function formatType(type: TypeIR): string {
1313
let t = ''
1414
if (type.scalar) {
1515
t = formatScalarType(type)
16-
if (t.includes('Saiphe_')) {
17-
console.log(t)
16+
if (t.includes('_')) {
17+
t = _snake2Pascal(t)
1818
}
1919
}
2020
if (type.fields) {

0 commit comments

Comments
 (0)