chore: remove outdated type comment (#5103)

This commit is contained in:
qinxiaosen_ccc
2022-05-06 18:44:28 +08:00
committed by GitHub
parent b9484543db
commit 292ce69439

View 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
}