Hello,
I am trying to learn how to use the cool bs-css
library. However, there is some part in my code where I need to use the CSS calc
feature. Naturally, the library offers a strongly typed version of it, with both addition and subtraction functions. The problem is when I am trying to use it. As code is worth a thousands words:
let tooltip = style(. [
translateY(Calc.-(-100.->pct, 5->px)),
])
ReScript compiler then complains about I'm not sure what to parse here when looking at "-".
The signature from the .rei file suggests that the functions names are actually the +
and -
symbols.
Is there something I am doing wrong?