options.ts — vue Source File
Architecture documentation for options.ts, a typescript file in the vue codebase. 5 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR a936832e_3507_156a_8272_84ed906b2f99["options.ts"] a6c11f09_c764_e550_187c_e2c0228cc358["component.ts"] a936832e_3507_156a_8272_84ed906b2f99 --> a6c11f09_c764_e550_187c_e2c0228cc358 eab3a653_6e04_db47_24da_71c7bac5197b["Component"] a936832e_3507_156a_8272_84ed906b2f99 --> eab3a653_6e04_db47_24da_71c7bac5197b f6868225_acf7_afdc_ebd3_15704ddb6566["vnode"] a936832e_3507_156a_8272_84ed906b2f99 --> f6868225_acf7_afdc_ebd3_15704ddb6566 f2c3de10_6aa3_651e_95a0_8deb68068b87["debug"] a936832e_3507_156a_8272_84ed906b2f99 --> f2c3de10_6aa3_651e_95a0_8deb68068b87 648c881d_0a8b_2e54_833a_913760ae9a68["apiSetup"] a936832e_3507_156a_8272_84ed906b2f99 --> 648c881d_0a8b_2e54_833a_913760ae9a68 a6c11f09_c764_e550_187c_e2c0228cc358["component.ts"] a6c11f09_c764_e550_187c_e2c0228cc358 --> a936832e_3507_156a_8272_84ed906b2f99 style a936832e_3507_156a_8272_84ed906b2f99 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import VNode from 'core/vdom/vnode'
import { DebuggerEvent } from 'v3/debug'
import { SetupContext } from 'v3/apiSetup'
import { Component } from './component'
export type InternalComponentOptions = {
_isComponent: true
parent: Component
_parentVnode: VNode
render?: Function
staticRenderFns?: Array<Function>
}
type InjectKey = string | Symbol
/**
* @internal
*/
export type ComponentOptions = {
// v3
setup?: (props: Record<string, any>, ctx: SetupContext) => unknown
[key: string]: any
componentId?: string
// data
data: object | Function | void
props?:
| string[]
| Record<string, Function | Array<Function> | null | PropOptions>
propsData?: object
computed?: {
[key: string]:
| Function
| {
get?: Function
set?: Function
cache?: boolean
}
}
methods?: { [key: string]: Function }
watch?: { [key: string]: Function | string }
// DOM
el?: string | Element
template?: string
render: (h: () => VNode) => VNode
renderError?: (h: () => VNode, err: Error) => VNode
staticRenderFns?: Array<() => VNode>
// lifecycle
beforeCreate?: Function
created?: Function
beforeMount?: Function
mounted?: Function
beforeUpdate?: Function
updated?: Function
activated?: Function
deactivated?: Function
beforeDestroy?: Function
destroyed?: Function
errorCaptured?: () => boolean | void
serverPrefetch?: Function
renderTracked?(e: DebuggerEvent): void
renderTriggerd?(e: DebuggerEvent): void
// assets
directives?: { [key: string]: object }
components?: { [key: string]: Component }
transitions?: { [key: string]: object }
filters?: { [key: string]: Function }
// context
provide?: Record<string | symbol, any> | (() => Record<string | symbol, any>)
inject?:
| { [key: string]: InjectKey | { from?: InjectKey; default?: any } }
| Array<string>
// component v-model customization
model?: {
prop?: string
event?: string
}
// misc
parent?: Component
mixins?: Array<object>
name?: string
extends?: Component | object
delimiters?: [string, string]
comments?: boolean
inheritAttrs?: boolean
// Legacy API
abstract?: any
// private
_isComponent?: true
_propKeys?: Array<string>
_parentVnode?: VNode
_parentListeners?: object | null
_renderChildren?: Array<VNode> | null
_componentTag: string | null
_scopeId: string | null
_base: typeof Component
}
export type PropOptions = {
type?: Function | Array<Function> | null
default?: any
required?: boolean | null
validator?: Function | null
}
Domain
Subdomains
Dependencies
- Component
- apiSetup
- component.ts
- debug
- vnode
Imported By
Source
Frequently Asked Questions
What does options.ts do?
options.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 options.ts?
options.ts defines 3 function(s): Record, VNode, props.
What does options.ts depend on?
options.ts imports 5 module(s): Component, apiSetup, component.ts, debug, vnode.
What files import options.ts?
options.ts is imported by 1 file(s): component.ts.
Where is options.ts in the architecture?
options.ts is located at src/types/options.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