Skip to content

Commit e60a796

Browse files
committed
Fix TypeScript errors
1 parent 5c7b2d7 commit e60a796

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"customConditions": ["source"],
55
"jsx": "react-jsx",
6+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
67
"moduleResolution": "Bundler",
78
"strict": true
89
},

packages/core/src/contexts/ThemeContext.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const UniversalProvider: React.FC<UniversalProviderProps> = ({
4444
children,
4545
theme = defaultTheme,
4646
}) => (
47-
<ThemeContext.Provider value={theme}>
47+
<ThemeContext.Provider value={theme as Theme}>
4848
<Global
4949
styles={{
5050
'*': {
@@ -73,8 +73,8 @@ export const UniversalProvider: React.FC<UniversalProviderProps> = ({
7373
color: 'inherit',
7474
textDecoration: 'inherit',
7575
},
76-
':root, [data-theme="light"]': createCSSVariables(extractTheme(theme, 'light')),
77-
'[data-theme="dark"]': createCSSVariables(extractTheme(theme, 'dark')),
76+
':root, [data-theme="light"]': createCSSVariables(extractTheme(theme as Theme, 'light')),
77+
'[data-theme="dark"]': createCSSVariables(extractTheme(theme as Theme, 'dark')),
7878
}}
7979
/>
8080
{children}

0 commit comments

Comments
 (0)