From f52b4d744d5b2428a9aee4da1e2a07a6e36b6cdb Mon Sep 17 00:00:00 2001 From: Agney Date: Wed, 18 Dec 2019 21:08:04 +0530 Subject: [PATCH] change from static definition to types --- playground/src/types/styled-components.d.ts | 28 +++------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/playground/src/types/styled-components.d.ts b/playground/src/types/styled-components.d.ts index fc3f5a0..668886d 100644 --- a/playground/src/types/styled-components.d.ts +++ b/playground/src/types/styled-components.d.ts @@ -1,28 +1,8 @@ import "styled-components"; +import theme from "../utils/theme"; + declare module "styled-components" { - export interface DefaultTheme { - container: { - border: string; - minHeight: string; - }; - error: { - background: string; - color: string; - }; - console: { - background: string; - }; - tabs: { - tabHeader: { - borderBottom: string; - }; - tabPanel: { - phoneHeight: string; - }; - selectedTab: { - borderBottom: string; - }; - }; - } + type Theme = typeof theme; + export interface DefaultTheme extends Theme {} }