Skip to content

Commit

Permalink
🐛 fix: fix types due to father build error
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Sep 15, 2023
1 parent aadcfcb commit 503e872
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/factories/createThemeProvider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Context, memo, ReactNode, useContext } from 'react';
import { Context, FC, memo, useContext } from 'react';

import { DEFAULT_THEME_CONTEXT, DEFAULT_THEME_PROVIDER } from '@/functions/setupStyled';
import { StyledConfig, StyleEngine, UseTheme } from '@/types';
import { StyleEngine, StyledConfig, UseTheme } from '@/types';

import { createStyledThemeProvider } from '@/factories/createStyledThemeProvider';
import AntdProvider from './AntdProvider';
Expand Down Expand Up @@ -35,7 +35,7 @@ interface CreateThemeProviderOptions {
}
export const createThemeProvider = (
option: CreateThemeProviderOptions,
): (<T = any, S = any>(props: ThemeProviderProps<T, S>) => ReactNode) => {
): (<T = any, S = any>(props: ThemeProviderProps<T, S>) => ReturnType<FC>) => {
// 如果有全局配置 styledConfig,那么 ThemeProvider
const DefaultStyledThemeProvider = option.styledConfig
? createStyledThemeProvider(option.styledConfig)
Expand Down

0 comments on commit 503e872

Please sign in to comment.