element-plus/packages/tokens/config-provider.ts
2022-03-25 15:35:56 +08:00

11 lines
338 B
TypeScript

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