Skip to content

Commit 52b29df

Browse files
author
=
committed
fix: literal function arguments with @default()
1 parent f1a8cef commit 52b29df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/sdk/src/ts-schema-generator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,9 @@ export class TsSchemaGenerator {
507507
...(defaultValue.args.length > 0
508508
? [
509509
ts.factory.createArrayLiteralExpression(
510-
defaultValue.args.map((arg) => this.createLiteralNode(arg)),
510+
defaultValue.args.map((arg) => this.createExpressionUtilsCall('literal', [
511+
this.createLiteralNode(arg)
512+
])),
511513
),
512514
]
513515
: []),

0 commit comments

Comments
 (0)