module Common = {
@spice
type comparator = string // for example
}
@spice
type queryConfig = {
comparator: Common.comparator,
query: string,
threshold: string,
time_range: string,
}
You can configure the mode in the rescript.json for ReScript v11
// uncurried
"ppx-flags": [
...,
[
"@greenlabs/ppx-spice/ppx",
"-uncurried"
],
...
]
// curried
"ppx-flags": [
...,
"@greenlabs/ppx-spice/ppx"
...,
]