You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
I would like to add additional variables to a theme so I can use them everywhere, like describe here. So i expected Typescript to compile this for exemple:
There is nothing wrong with it, i'm sorry, I didn't understand very well
the Typescript module augmentation. Now I do, thank you and sorry for
bothering :)
Expected Behavior
I would like to add additional variables to a theme so I can use them everywhere, like describe here. So i expected Typescript to compile this for exemple:
Current Behavior
I got this error when Typescript compile:
Object literal may only specify known properties, and 'custom' does not exist in type 'ThemeOptions'.
Your Environment
I can share my tsconfig.json or more if you want but I think just adding
[propName: string]: any;
in the interface ThemeOptions should fix the problem.
The text was updated successfully, but these errors were encountered: