MCPcopy
hub / github.com/vuejs/composition-api / getRegisteredVueOrDefault

Function getRegisteredVueOrDefault

src/runtimeContext.ts:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61// returns registered vue or `vue` dependency
62export function getRegisteredVueOrDefault(): VueConstructor {
63 let constructor = vueConstructor || vueDependency
64
65 if (__DEV__) {
66 assert(constructor, `No vue dependency found.`)
67 }
68
69 return constructor!
70}
71
72export function setVueConstructor(Vue: VueConstructor) {
73 // @ts-ignore

Callers 3

apiWatch.spec.tsFile · 0.90
observeFunction · 0.90
warnFunction · 0.90

Calls 1

assertFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…