use.ts — vue Source File
Architecture documentation for use.ts, a typescript file in the vue codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR fbf3d1a4_d56c_d478_1573_241df479fc52["use.ts"] 76672dd6_4e87_4468_a48b_f4da793fd211["index.ts"] fbf3d1a4_d56c_d478_1573_241df479fc52 --> 76672dd6_4e87_4468_a48b_f4da793fd211 e113c728_56e1_b7c8_935f_f89af3e6c5fc["global-api"] fbf3d1a4_d56c_d478_1573_241df479fc52 --> e113c728_56e1_b7c8_935f_f89af3e6c5fc 65cf792e_a676_cf99_19ca_1e38df384bdc["index.ts"] 65cf792e_a676_cf99_19ca_1e38df384bdc --> fbf3d1a4_d56c_d478_1573_241df479fc52 style fbf3d1a4_d56c_d478_1573_241df479fc52 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { GlobalAPI } from 'types/global-api'
import { toArray, isFunction } from '../util/index'
export function initUse(Vue: GlobalAPI) {
Vue.use = function (plugin: Function | any) {
const installedPlugins =
this._installedPlugins || (this._installedPlugins = [])
if (installedPlugins.indexOf(plugin) > -1) {
return this
}
// additional parameters
const args = toArray(arguments, 1)
args.unshift(this)
if (isFunction(plugin.install)) {
plugin.install.apply(plugin, args)
} else if (isFunction(plugin)) {
plugin.apply(null, args)
}
installedPlugins.push(plugin)
return this
}
}
Domain
Subdomains
Functions
Dependencies
- global-api
- index.ts
Imported By
Source
Frequently Asked Questions
What does use.ts do?
use.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, GlobalAPI subdomain.
What functions are defined in use.ts?
use.ts defines 1 function(s): initUse.
What does use.ts depend on?
use.ts imports 2 module(s): global-api, index.ts.
What files import use.ts?
use.ts is imported by 1 file(s): index.ts.
Where is use.ts in the architecture?
use.ts is located at src/core/global-api/use.ts (domain: VueCore, subdomain: GlobalAPI, 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