index.ts — vue Source File
Architecture documentation for index.ts, a typescript file in the vue codebase. 17 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 6090fc15_0543_136f_4e4a_ce1860382ce6["index.ts"] d22f3dff_cc24_705a_1193_eec206dcb1d5["config.ts"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> d22f3dff_cc24_705a_1193_eec206dcb1d5 dc062a3a_6b69_b0c9_3501_30d73b720622["use.ts"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> dc062a3a_6b69_b0c9_3501_30d73b720622 7fe2dc3d_81de_32c3_a72f_6cfe53926acd["initUse"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> 7fe2dc3d_81de_32c3_a72f_6cfe53926acd d80917ea_1111_c1b8_7739_848c464e1475["mixin.ts"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> d80917ea_1111_c1b8_7739_848c464e1475 8c170a2b_5cd2_357b_bd28_c103d298e40e["initMixin"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> 8c170a2b_5cd2_357b_bd28_c103d298e40e a14b0815_48fb_998a_d3d7_ac867ed1d7f9["extend.ts"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> a14b0815_48fb_998a_d3d7_ac867ed1d7f9 ce425d9f_05ad_8df9_9c70_37c35a2bdb0e["initExtend"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> ce425d9f_05ad_8df9_9c70_37c35a2bdb0e cbff02ff_d07c_20c5_3983_6117ca41c317["assets.ts"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> cbff02ff_d07c_20c5_3983_6117ca41c317 4c59a107_b6e6_9de7_cbeb_c76f0d664854["initAssetRegisters"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> 4c59a107_b6e6_9de7_cbeb_c76f0d664854 012c0986_6b9d_ad59_8fba_57884312dd3b["index.ts"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> 012c0986_6b9d_ad59_8fba_57884312dd3b 30a55d4c_1b7d_ce16_2a1e_1bfee103e294["set"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> 30a55d4c_1b7d_ce16_2a1e_1bfee103e294 1e8dd21f_c506_2ce7_ecf3_262154cc2d3f["del"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> 1e8dd21f_c506_2ce7_ecf3_262154cc2d3f f344b645_583a_944f_6ad1_202173e0522d["index.ts"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> f344b645_583a_944f_6ad1_202173e0522d 2a298df2_21b8_7e5a_c372_51ba50c9d92d["index.ts"] 6090fc15_0543_136f_4e4a_ce1860382ce6 --> 2a298df2_21b8_7e5a_c372_51ba50c9d92d style 6090fc15_0543_136f_4e4a_ce1860382ce6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import config from '../config'
import { initUse } from './use'
import { initMixin } from './mixin'
import { initExtend } from './extend'
import { initAssetRegisters } from './assets'
import { set, del } from '../observer/index'
import { ASSET_TYPES } from 'shared/constants'
import builtInComponents from '../components/index'
import { observe } from 'core/observer/index'
import {
warn,
extend,
nextTick,
mergeOptions,
defineReactive
} from '../util/index'
import type { GlobalAPI } from 'types/global-api'
export function initGlobalAPI(Vue: GlobalAPI) {
// config
const configDef: Record<string, any> = {}
configDef.get = () => config
if (__DEV__) {
configDef.set = () => {
warn(
'Do not replace the Vue.config object, set individual fields instead.'
)
}
}
Object.defineProperty(Vue, 'config', configDef)
// exposed util methods.
// NOTE: these are not considered part of the public API - avoid relying on
// them unless you are aware of the risk.
Vue.util = {
warn,
extend,
mergeOptions,
defineReactive
}
Vue.set = set
Vue.delete = del
Vue.nextTick = nextTick
// 2.6 explicit observable API
Vue.observable = <T>(obj: T): T => {
observe(obj)
return obj
}
Vue.options = Object.create(null)
ASSET_TYPES.forEach(type => {
Vue.options[type + 's'] = Object.create(null)
})
// this is used to identify the "base" constructor to extend all plain-object
// components with in Weex's multi-instance scenarios.
Vue.options._base = Vue
extend(Vue.options.components, builtInComponents)
initUse(Vue)
initMixin(Vue)
initExtend(Vue)
initAssetRegisters(Vue)
}
Domain
Subdomains
Functions
Dependencies
Imported By
Source
Frequently Asked Questions
What does index.ts do?
index.ts is a source file in the vue codebase, written in typescript. It belongs to the CoreRuntime domain, VirtualDOM subdomain.
What functions are defined in index.ts?
index.ts defines 1 function(s): initGlobalAPI.
What does index.ts depend on?
index.ts imports 17 module(s): assets.ts, config.ts, constants, del, extend.ts, global-api, index, index.ts, and 9 more.
What files import index.ts?
index.ts is imported by 1 file(s): index.ts.
Where is index.ts in the architecture?
index.ts is located at src/core/global-api/index.ts (domain: CoreRuntime, subdomain: VirtualDOM, directory: src/core/global-api).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free