From: qinxiaosen_ccc <33564028+senmu-a@users.noreply.github.com> Date: Fri, 6 May 2022 10:44:28 +0000 (+0800) Subject: chore: remove outdated type comment (#5103) X-Git-Tag: v3.2.34-beta.1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=292ce6943940049afe79d4f20b1047b4651b9b04;p=thirdparty%2Fvuejs%2Fcore.git chore: remove outdated type comment (#5103) --- diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 8b437f2bfd..6b2093141b 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 }