File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/0/src/factories/createContext Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ export type ContextKey<Z> = InjectionKey<Z> | string
11
11
* @param key The provided string or InjectionKey
12
12
* @template Z The type values for the context.
13
13
* @returns A function that retrieves context
14
+ *
15
+ * @see https://vuejs.org/api/composition-api-dependency-injection.html#inject
14
16
*/
15
17
export function useContext < Z > ( key : ContextKey < Z > ) {
16
18
return function ( ) : Z {
@@ -31,7 +33,7 @@ export function useContext<Z> (key: ContextKey<Z>) {
31
33
* @template Z The type values for the context.
32
34
* @returns A tuple containing provide/inject
33
35
*
34
- * @see https://vuejs.org/guide/components/provide-inject
36
+ * @see https://vuejs.org/api/composition-api-dependency-injection.html#provide
35
37
* @see https://0.vuetifyjs.com/composables/foundation/create-context
36
38
*/
37
39
export function createContext < Z > ( key : ContextKey < Z > ) {
You can’t perform that action at this time.
0 commit comments