]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove outdated type comment (#5103)
authorqinxiaosen_ccc <33564028+senmu-a@users.noreply.github.com>
Fri, 6 May 2022 10:44:28 +0000 (18:44 +0800)
committerGitHub <noreply@github.com>
Fri, 6 May 2022 10:44:28 +0000 (06:44 -0400)
packages/runtime-core/src/apiCreateApp.ts

index 8b437f2bfd1968425e803c5525181faf7180e5c7..6b2093141bdd906b18937b27b38b8e58c7d5a0ff 100644 (file)
@@ -345,9 +345,8 @@ export function createAppAPI<HostElement>(
               `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
       }