diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 8b437f2bf..6b2093141 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 }