element-plus/packages/tokens/config-provider.ts
三咲智子 57dd10ad49
fix(utils): setTimeout & config-provider type (#4598)
* fix(utils): setTimeout type

* fix(components): export config-provider types
2021-12-01 15:58:53 +08:00

8 lines
313 B
TypeScript

import type { configProviderProps } from '@element-plus/components/config-provider'
import type { InjectionKey, ExtractPropTypes } from 'vue'
export type ConfigProviderContext = ExtractPropTypes<typeof configProviderProps>
export const configProviderContextKey: InjectionKey<ConfigProviderContext> =
Symbol()