Skip to content

Commit 697ee09

Browse files
committed
feat: fix unique property serialization in build definitions
1 parent 5e79bfa commit 697ee09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ts/scripts/build-definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function buildSettingDecorators(settings: any[]): string[] {
140140
return settings.flatMap(s => {
141141
const props = [
142142
`identifier: ${JSON.stringify(s.identifier)},`,
143-
...(s.unique && s.unique !== "NONE" ? [`unique: ${JSON.stringify(s.unique)} as any,`] : []),
143+
...(s.unique && s.unique !== "NONE" ? [`unique: ${JSON.stringify(s.unique)},`] : []),
144144
...(Array.isArray(s.name) && s.name.length ? [`name: [${renderTranslationsInline(s.name)}],`] : []),
145145
...(Array.isArray(s.description) && s.description.length ? [`description: [${renderTranslationsInline(s.description)}],`] : []),
146146
...(s.optional ? [`optional: true,`] : []),

0 commit comments

Comments
 (0)