From 292ce6943940049afe79d4f20b1047b4651b9b04 Mon Sep 17 00:00:00 2001 From: qinxiaosen_ccc <33564028+senmu-a@users.noreply.github.com> Date: Fri, 6 May 2022 18:44:28 +0800 Subject: [PATCH] chore: remove outdated type comment (#5103) --- packages/runtime-core/src/apiCreateApp.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 8b437f2bfd1..6b2093141bd 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -345,9 +345,8 @@ export function createAppAPI( `It will be overwritten with the new value.` ) } - // TypeScript doesn't allow symbols as index type - // https://github.com/Microsoft/TypeScript/issues/24587 - context.provides[key as string] = value + + context.provides[key as string | symbol] = value return app }