From d5cb3324725e9d9fa09c899de93b395d40038ecc Mon Sep 17 00:00:00 2001 From: ZHAO Jinxiang Date: Thu, 18 Aug 2022 15:17:22 +0800 Subject: [PATCH] fix(types): remove number type of provide --- packages/runtime-core/src/apiInject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {