Skip to content

[TypeScript] Change ITheme interface to accept other values.#37

Open
dbyzero wants to merge 1 commit intobeyonk:masterfrom
dbyzero:patch-1
Open

[TypeScript] Change ITheme interface to accept other values.#37
dbyzero wants to merge 1 commit intobeyonk:masterfrom
dbyzero:patch-1

Conversation

@dbyzero
Copy link

@dbyzero dbyzero commented Sep 20, 2022

Without it I cannot change default color values in typescript without error.

Error :

Type '{ danger: string; success: string; warning: string; info: string; default: string; }' is not assignable to type 'ITheme'.
  Types of property 'danger' are incompatible.
    Type 'string' is not assignable to type '"#bb2124"'

Change ITheme interface to accept other values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant