Shmew/Feliz.MaterialUI

theme.spacing doesn't work for higher arities (please help!)

cmeeren opened this issue · 1 comments

theme.spacing 1 works, but not theme.spacing (2, 3) and higher arities (they simply return 0).

It's defined like this:

type Theme =
  abstract spacing: a: int -> int
  abstract spacing: a: int * b: int -> int
  abstract spacing: a: int * b: int * c: int -> int
  abstract spacing: a: int * b: int * c: int * d: int -> int

I have no idea why they don't work and can't seem to figure it out. Help wanted!

Nevermind... I just discovered that the higher arities return string (e.g. "8px 16px", i.e. ICssUnit), not int. Changing the return type fixed it.