@@ -5,7 +5,7 @@ import { warn } from './warning'
|
||||
|
||||
export interface InjectionKey<T> extends Symbol {}
|
||||
|
||||
export function provide<T>(key: InjectionKey<T> | string, value: T) {
|
||||
export function provide<T>(key: InjectionKey<T> | string | number, value: T) {
|
||||
if (!currentInstance) {
|
||||
if (__DEV__) {
|
||||
warn(`provide() can only be used inside setup().`)
|
||||
|
||||
Reference in New Issue
Block a user