Skip to content

Commit

Permalink
fix: 修改StyleProvider的Props类型 ant-design#50
Browse files Browse the repository at this point in the history
  • Loading branch information
UreMySunshine committed May 12, 2023
1 parent 4305b4f commit 6651adc
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/factories/createStyleProvider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
import { createEmotion, Emotion } from '@/core/createEmotion';
import { StyleManager } from '@/types';
import { StyleProvider as AntdStyleProvider } from '@ant-design/cssinjs';
import type { StyleContextProps } from '@ant-design/cssinjs/es/StyleContext';
import { StylisPlugin } from '@emotion/cache';
import { Context, FC, memo, ReactNode, useContext, useEffect, useMemo } from 'react';
import {
ComponentProps,
Context,
FC,
memo,
ReactNode,
useContext,
useEffect,
useMemo,
} from 'react';

export interface StyleProviderProps
extends Partial<
Pick<StyleContextProps, 'autoClear' | 'cache' | 'hashPriority' | 'ssrInline' | 'transformers'>
Pick<
ComponentProps<typeof AntdStyleProvider>,
'autoClear' | 'cache' | 'hashPriority' | 'ssrInline' | 'transformers'
>
> {
prefix?: string;

Expand Down

0 comments on commit 6651adc

Please sign in to comment.