Open jahirfiquitiva opened 2 years ago
It seems that you have some circular dependency in your types. Your theme includes the utils which in turn rely on the type of the theme to define the return value.
theme <-- StitchesCSS <-- UtilFunc <-- UtilsObject <-- marginUtils <-- utils <-- theme
Quick fix is to remove the type of your marginUtils UtilsObject<PropertyValue<'margin'>>
(and same for paddingUtils). But there is probably a better way to fix this...
@rothsandro I tried changing the type used there, to this:
export type UtilFunc<T> = (value: T) => Record<string, unknown>;
export type UtilsObject<T> = Record<string, UtilFunc<T>>;
but still isn't working 😕
oh, removing the whole type from those utils files worked, yeah... I wish I could type them tho 🤔 Thanks!
Bug report
Describe the bug
I'm getting the following error:
I'm not sure what could be causing that, but here's my repository in case you can give it a look. https://github.com/jahirfiquitiva/jahir.dev/tree/dev
Thanks in advance
System information