You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any attribute with type map requires the properties key to be set, but I don't know the values of each property beforehand. If I set properties: {}, the interestsScore field doesn't get type safety - I can set interestsScore to a string, boolean, number, etc.
How can I create this attribute? Bonus points if I can create a map attribute that has string keys, and each value is also a map containing specific properties:
I'd like to make an entity that looks like
where the
interestsScore
could basically be a TypeScriptRecord
type, where the keys are unknown:Any attribute with type
map
requires theproperties
key to be set, but I don't know the values of each property beforehand. If I setproperties: {}
, theinterestsScore
field doesn't get type safety - I can setinterestsScore
to a string, boolean, number, etc.How can I create this attribute? Bonus points if I can create a
map
attribute that has string keys, and each value is also a map containing specific properties:Sorry in advance if this is already mentioned in the docs, I must've missed it. Thanks!
The text was updated successfully, but these errors were encountered: