Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils): setTimeout & config-provider type #4598

Merged
merged 2 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/components/config-provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ import { ConfigProvider } from './src'

export const ElConfigProvider = withInstall(ConfigProvider)
export default ElConfigProvider

export * from './src/config-provider'
6 changes: 3 additions & 3 deletions packages/tokens/config-provider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { configProviderProps } from '@element-plus/components/config-provider/config-provider'
import type { configProviderProps } from '@element-plus/components/config-provider'
import type { InjectionKey, ExtractPropTypes } from 'vue'

export type ConfigProvdierContext = ExtractPropTypes<typeof configProviderProps>
export type ConfigProviderContext = ExtractPropTypes<typeof configProviderProps>

export const configProviderContextKey: InjectionKey<ConfigProvdierContext> =
export const configProviderContextKey: InjectionKey<ConfigProviderContext> =
Symbol()
2 changes: 1 addition & 1 deletion packages/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type Indexable<T> = {

export type Hash<T> = Indexable<T>

export type TimeoutHandle = ReturnType<typeof global.setTimeout>
export type TimeoutHandle = number

export type ComponentSize = 'large' | 'medium' | 'small' | 'mini'

Expand Down