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 859ef10 commit d6ddbe3Copy full SHA for d6ddbe3
.changeset/strange-wolves-explain.md
@@ -0,0 +1,5 @@
1
+---
2
+'@compai/css-gui': patch
3
4
+
5
+Send along options to stringify in tuple schema
packages/gui/src/components/schemas/tuple.tsx
@@ -37,9 +37,11 @@ export function tupleSchema<T>({
37
? [itemSchema.defaultValue]
38
: labels.map(() => itemSchema.defaultValue)
39
40
- function stringify(value: T[]) {
+ function stringify(value: T[], ...args: any[]) {
41
return (
42
- value?.map((item) => itemSchema.stringify(item)).join(separator) ?? null
+ value
43
+ ?.map((item) => itemSchema.stringify(item, ...args))
44
+ .join(separator) ?? null
45
)
46
}
47
0 commit comments