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

9 lines
325 B
TypeScript
Raw Normal View History

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