Replies: 1 comment 1 reply
-
const TestModel = types.refinement(
types.map(types.string),
(value) => Object.keys(value).every((key) =>
typeof key === "string" && typeof value[key] === "string"
})
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dodoto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to define a model with arbitrary properties. And properties and values are typeof string.
Beta Was this translation helpful? Give feedback.
All reactions