We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 589c7cb commit ce9028cCopy full SHA for ce9028c
src/createUseMutation.ts
@@ -59,7 +59,7 @@ export const createUseMutation = (
59
ts.factory.createIdentifier(
60
param.name.getText(node)
61
),
62
- undefined,
+ param.questionToken ?? param.initializer ? ts.factory.createToken(ts.SyntaxKind.QuestionToken) : param.questionToken,
63
param.type
64
);
65
})
0 commit comments