Skip to content

Commit 7c36284

Browse files
authored
fix(query): make sure to make definition have optional typing if allparamsoptional (#1762)
1 parent 9321a0c commit 7c36284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/getters/params.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const getParams = ({
9797

9898
const definition = `${name}${
9999
!required || resolvedValue.originalSchema!.default ? '?' : ''
100-
}: ${resolvedValue.value}`;
100+
}: ${paramType}`;
101101

102102
const implementation = `${name}${
103103
!required && !resolvedValue.originalSchema!.default ? '?' : ''

0 commit comments

Comments
 (0)