element-plus/packages/tokens/config-provider.ts

11 lines
338 B
TypeScript

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