Skip to content

Commit e0ab103

Browse files
committed
chore(createContext): update doc blocks
1 parent 9188d2f commit e0ab103

File tree

1 file changed

+3
-1
lines changed
  • packages/0/src/factories/createContext

1 file changed

+3
-1
lines changed

packages/0/src/factories/createContext/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export type ContextKey<Z> = InjectionKey<Z> | string
1111
* @param key The provided string or InjectionKey
1212
* @template Z The type values for the context.
1313
* @returns A function that retrieves context
14+
*
15+
* @see https://vuejs.org/api/composition-api-dependency-injection.html#inject
1416
*/
1517
export function useContext<Z> (key: ContextKey<Z>) {
1618
return function (): Z {
@@ -31,7 +33,7 @@ export function useContext<Z> (key: ContextKey<Z>) {
3133
* @template Z The type values for the context.
3234
* @returns A tuple containing provide/inject
3335
*
34-
* @see https://vuejs.org/guide/components/provide-inject
36+
* @see https://vuejs.org/api/composition-api-dependency-injection.html#provide
3537
* @see https://0.vuetifyjs.com/composables/foundation/create-context
3638
*/
3739
export function createContext<Z> (key: ContextKey<Z>) {

0 commit comments

Comments
 (0)