diff --git a/packages/runtime-core/src/apiInject.ts b/packages/runtime-core/src/apiInject.ts index bbf925102d8..9cbda9b0d2f 100644 --- a/packages/runtime-core/src/apiInject.ts +++ b/packages/runtime-core/src/apiInject.ts @@ -6,7 +6,7 @@ import { warn } from './warning' export interface InjectionKey extends Symbol {} -export function provide | string | number>( +export function provide | string>( key: K, value: K extends InjectionKey ? V : T ) {