user-1
(User 1)
1
This topic was automatically generated from Slack. You can find the original thread here.
Is there a way to enforce an array of integers within props?
stages: {
type: "integer[]",
label: "Stages",
optional: true,
}
is not working
user-1
(User 1)
2
Hm we might only support string arrays
user-1
(User 1)
3
Actually our docs say we should support integer arrays also. Did you define the options
?
user-1
(User 1)
4
user-1
(User 1)
6
This worked for me, what wasn’t working for you?
user-1
(User 1)
7
It returns a string. Trying console.log(typeof this.ints)
user-1
(User 1)
9
That sounds like a bug. Do you only see that with integer[]
and not integer
?
user-1
(User 1)
10
integer
returns a single integer, yes, but integer[]
returns a string
user-1
(User 1)
11
Thanks, Mike. I see that too and am flagging to eng.