chore(src/types): define "IThemeProps" interface as "DefaultTheme" object
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2025-04-06 10:21:00 +02:00
parent addc3f4332
commit 18d4cdce0c
Signed by: tom
GPG key ID: F17EFE4272D89FF6

9
src/types/styled-components.d.ts vendored Normal file
View file

@ -0,0 +1,9 @@
import "styled-components"
import { IThemeProps } from "../lib/useTheme"
// As of styled-components v6.1.17, we need to map our custom theme interface to the
// default styled-components theme, as the type definition has been tightened with the merge request.
// https://github.com/styled-components/styled-components/pull/4317
declare module "styled-components" {
export interface DefaultTheme extends IThemeProps {}
}