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 CompilerSFC TemplateTransformer 3 imports 1 dependents 7 functions

Entity Profile

Dependency Diagram

graph LR
  2a27bd4e_c7ee_f42b_a64f_4bf920b70ca7["global-api.ts"]
  a6c11f09_c764_e550_187c_e2c0228cc358["component.ts"]
  2a27bd4e_c7ee_f42b_a64f_4bf920b70ca7 --> a6c11f09_c764_e550_187c_e2c0228cc358
  eab3a653_6e04_db47_24da_71c7bac5197b["Component"]
  2a27bd4e_c7ee_f42b_a64f_4bf920b70ca7 --> eab3a653_6e04_db47_24da_71c7bac5197b
  7937fbf2_2517_3f42_44b3_0dbdf16af5de["config"]
  2a27bd4e_c7ee_f42b_a64f_4bf920b70ca7 --> 7937fbf2_2517_3f42_44b3_0dbdf16af5de
  a6c11f09_c764_e550_187c_e2c0228cc358["component.ts"]
  a6c11f09_c764_e550_187c_e2c0228cc358 --> 2a27bd4e_c7ee_f42b_a64f_4bf920b70ca7
  style 2a27bd4e_c7ee_f42b_a64f_4bf920b70ca7 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 CompilerSFC domain, TemplateTransformer 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: CompilerSFC, subdomain: TemplateTransformer, directory: src/types).

Analyze Your Own Codebase

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

Try Supermodel Free