Description
Vue version
3.3.5
Link to minimal reproduction
Steps to reproduce
See Comp.vue
file
What is expected?
Inject to not give typescript error if a number is passed
What is actually happening?
getting the error
System Info
No response
Any additional comments?
provide
seems to accept number
as key, the parameter will be converted to a string
so
provide(1, 42)
inject(1) // 42
inject('1') // 42