Skip to content

Commit

Permalink
🐛 fix: the MappingAlgorithm type doesn't exported (#103)
Browse files Browse the repository at this point in the history
* fix: the MappingAlgorithm type doesn't exported

* chore: update peer
  • Loading branch information
Dunqing committed Sep 4, 2023
1 parent da269d3 commit 046ddd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/demos/guide/switch-theme/AntdTheme/CustomDark.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { theme } from 'antd';
import { ThemeProvider } from 'antd-style';
import { MappingAlgorithm, ThemeConfig } from 'antd/es/config-provider/context';
import { MappingAlgorithm, ThemeConfig } from 'antd';

import App from '../../../common/demo';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"zustand": "^4"
},
"peerDependencies": {
"antd": "^5",
"antd": ">=5.8.1",
"react": ">=18"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions src/types/theme.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ThemeConfig } from 'antd';
import { AliasToken, MappingAlgorithm } from 'antd/es/theme/interface';
import { ThemeConfig, MappingAlgorithm } from 'antd';
import { AliasToken } from 'antd/es/theme/interface';

import { BrowserPrefers, ThemeAppearance, ThemeMode } from './appearance';

Expand Down

0 comments on commit 046ddd6

Please sign in to comment.