|
|
@@ -4,7 +4,9 @@ import { currentRenderingInstance } from './componentRenderContext'
|
|
|
import { currentApp } from './apiCreateApp'
|
|
|
import { warn } from './warning'
|
|
|
|
|
|
-export interface InjectionKey<T> extends Symbol {}
|
|
|
+interface InjectionConstraint<T> {}
|
|
|
+
|
|
|
+export type InjectionKey<T> = symbol & InjectionConstraint<T>
|
|
|
|
|
|
export function provide<T, K = InjectionKey<T> | string | number>(
|
|
|
key: K,
|