Home / File/ global-api.ts — vue Source File

global-api.ts — vue Source File

Architecture documentation for global-api.ts, a typescript file in the vue codebase. 3 imports, 1 dependents.

File typescript VueCore GlobalAPI 3 imports 1 dependents 7 functions

Entity Profile

Dependency Diagram

graph LR
  76e5daad_5fc4_712f_a3f7_76cedaa2d1a6["global-api.ts"]
  ba29f985_44b7_4ac5_07cd_a4e17537349a["component.ts"]
  76e5daad_5fc4_712f_a3f7_76cedaa2d1a6 --> ba29f985_44b7_4ac5_07cd_a4e17537349a
  cd5e3304_b18e_ac2d_84bc_fcd7b8e076cd["Component"]
  76e5daad_5fc4_712f_a3f7_76cedaa2d1a6 --> cd5e3304_b18e_ac2d_84bc_fcd7b8e076cd
  a9349ba5_bc74_f03e_b748_41eb2dcc87a9["config"]
  76e5daad_5fc4_712f_a3f7_76cedaa2d1a6 --> a9349ba5_bc74_f03e_b748_41eb2dcc87a9
  ba29f985_44b7_4ac5_07cd_a4e17537349a["component.ts"]
  ba29f985_44b7_4ac5_07cd_a4e17537349a --> 76e5daad_5fc4_712f_a3f7_76cedaa2d1a6
  style 76e5daad_5fc4_712f_a3f7_76cedaa2d1a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Config } from 'core/config'
import { Component } from './component'

/**
 * @internal
 */
export interface GlobalAPI {
  // new(options?: any): Component
  (options?: any): void
  cid: number
  options: Record<string, any>
  config: Config
  util: Object

  extend: (options: typeof Component | object) => typeof Component
  set: <T>(target: Object | Array<T>, key: string | number, value: T) => T
  delete: <T>(target: Object | Array<T>, key: string | number) => void
  nextTick: (fn: Function, context?: Object) => void | Promise<any>
  use: (plugin: Function | Object) => GlobalAPI
  mixin: (mixin: Object) => GlobalAPI
  compile: (template: string) => {
    render: Function
    staticRenderFns: Array<Function>
  }

  directive: (id: string, def?: Function | Object) => Function | Object | void
  component: (
    id: string,
    def?: typeof Component | Object
  ) => typeof Component | void
  filter: (id: string, def?: Function) => Function | void

  observable: <T>(value: T) => T

  // allow dynamic method registration
  [key: string]: any
}

Domain

Subdomains

Types

Dependencies

Frequently Asked Questions

What does global-api.ts do?
global-api.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 global-api.ts?
global-api.ts defines 7 function(s): GlobalAPI, T, fn, id, options, target, template.
What does global-api.ts depend on?
global-api.ts imports 3 module(s): Component, component.ts, config.
What files import global-api.ts?
global-api.ts is imported by 1 file(s): component.ts.
Where is global-api.ts in the architecture?
global-api.ts is located at src/types/global-api.ts (domain: VueCore, subdomain: GlobalAPI, directory: src/types).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free