added type declaration for styled components theme
This commit is contained in:
parent
14ff147aae
commit
08a8d5b030
1 changed files with 8 additions and 0 deletions
8
source/src/types/styled-comonents.d.ts
vendored
Normal file
8
source/src/types/styled-comonents.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import "styled-components"
|
||||
|
||||
declare module "styled-components" {
|
||||
export interface DefaultTheme {
|
||||
currentTheme: string
|
||||
setTheme(setThemeTo: string): void
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue