Closed Ivan1105 closed 2 years ago
Development Relevant Information:
I wanted to change the theme colors and used this.$theme.colors(color) as it was declared
this.$theme.colors(color)
interface BalmUITheme { colors(color: ThemeColor): void; }
But the browser reports Uncaught TypeError: this.$theme.colors is not a function
Uncaught TypeError: this.$theme.colors is not a function
It works well if I write as (this.$theme.colors as ThemeColor) = color.
(this.$theme.colors as ThemeColor) = color
Hi @Ivan1105 , It's a getter, not a function.
This is a mistake in the theme documentation. I have updated.
Thank you very much :)
NOW, balm-ui@9 is the new default version.
balm-ui@9
Development Relevant Information:
Description:
I wanted to change the theme colors and used
this.$theme.colors(color)
as it was declaredBut the browser reports
Uncaught TypeError: this.$theme.colors is not a function
It works well if I write as
(this.$theme.colors as ThemeColor) = color
.