Skip to content

Commit

Permalink
fix(types): remove number type of provide
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Aug 18, 2022
1 parent c1ee6ca commit adc8890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiInject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { warn } from './warning'

export interface InjectionKey<T> extends Symbol {}

export function provide<T>(key: InjectionKey<T> | string | number, value: T) {
export function provide<T>(key: InjectionKey<T> | string, value: T) {
if (!currentInstance) {
if (__DEV__) {
warn(`provide() can only be used inside setup().`)
Expand Down

0 comments on commit adc8890

Please sign in to comment.