Home / File/ v3-component-options.d.ts — vue Source File

v3-component-options.d.ts — vue Source File

Architecture documentation for v3-component-options.d.ts, a typescript file in the vue codebase. 7 imports, 0 dependents.

File typescript CompilerSFC ScriptAnalyzer 7 imports 5 functions

Entity Profile

Dependency Diagram

graph LR
  4a2ab4fa_5675_20d5_ca91_6198afde3b52["v3-component-options.d.ts"]
  dc6e3659_cdc8_9bde_c04a_3f2e10157f23["./vue"]
  4a2ab4fa_5675_20d5_ca91_6198afde3b52 --> dc6e3659_cdc8_9bde_c04a_3f2e10157f23
  4153c628_325c_7bd5_7f44_82467e39cbcd["./vnode"]
  4a2ab4fa_5675_20d5_ca91_6198afde3b52 --> 4153c628_325c_7bd5_7f44_82467e39cbcd
  28e0e4fb_82e2_63fb_e4b0_94f95ea94f68["./options"]
  4a2ab4fa_5675_20d5_ca91_6198afde3b52 --> 28e0e4fb_82e2_63fb_e4b0_94f95ea94f68
  5c546f44_f5ba_d1b4_f812_3423c5a8baa0["./v3-setup-context"]
  4a2ab4fa_5675_20d5_ca91_6198afde3b52 --> 5c546f44_f5ba_d1b4_f812_3423c5a8baa0
  82d5dabe_eaff_f09f_dcfe_a1f35f5cf0b1["./common"]
  4a2ab4fa_5675_20d5_ca91_6198afde3b52 --> 82d5dabe_eaff_f09f_dcfe_a1f35f5cf0b1
  d738e46e_469e_d51a_f17f_a571a7bad1b3["./v3-component-props"]
  4a2ab4fa_5675_20d5_ca91_6198afde3b52 --> d738e46e_469e_d51a_f17f_a571a7bad1b3
  44f295dc_6af8_6973_b750_eaed44eedc19["./v3-component-public-instance"]
  4a2ab4fa_5675_20d5_ca91_6198afde3b52 --> 44f295dc_6af8_6973_b750_eaed44eedc19
  style 4a2ab4fa_5675_20d5_ca91_6198afde3b52 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Vue } from './vue'
import { VNode } from './vnode'
import { ComponentOptions as Vue2ComponentOptions } from './options'
import { EmitsOptions, SetupContext } from './v3-setup-context'
import { Data, LooseRequired, UnionToIntersection } from './common'
import {
  ComponentPropsOptions,
  ExtractDefaultPropTypes,
  ExtractPropTypes
} from './v3-component-props'
import { CreateComponentPublicInstance } from './v3-component-public-instance'
export { ComponentPropsOptions } from './v3-component-props'

/**
 * Interface for declaring custom options.
 *
 * @example
 * ```ts
 * declare module 'vue' {
 *   interface ComponentCustomOptions {
 *     beforeRouteUpdate?(
 *       to: Route,
 *       from: Route,
 *       next: () => void
 *     ): void
 *   }
 * }
 * ```
 */
export interface ComponentCustomOptions {}

export type ComputedGetter<T> = (ctx?: any) => T
export type ComputedSetter<T> = (v: T) => void

export interface WritableComputedOptions<T> {
  get: ComputedGetter<T>
  set: ComputedSetter<T>
}

export type ComputedOptions = Record<
  string,
  ComputedGetter<any> | WritableComputedOptions<any>
>

export interface MethodOptions {
  [key: string]: Function
}

export type SetupFunction<
  Props,
  RawBindings = {},
  Emits extends EmitsOptions = {}
> = (
  this: void,
  props: Readonly<Props>,
  ctx: SetupContext<Emits>
) => RawBindings | (() => VNode | null) | void

type ExtractOptionProp<T> = T extends ComponentOptionsBase<
  infer P, // Props
// ... (193 more lines)

Domain

Subdomains

Dependencies

  • ./common
  • ./options
  • ./v3-component-props
  • ./v3-component-public-instance
  • ./v3-setup-context
  • ./vnode
  • ./vue

Frequently Asked Questions

What does v3-component-options.d.ts do?
v3-component-options.d.ts is a source file in the vue codebase, written in typescript. It belongs to the CompilerSFC domain, ScriptAnalyzer subdomain.
What functions are defined in v3-component-options.d.ts?
v3-component-options.d.ts defines 5 function(s): D, T, args, props, v.
What does v3-component-options.d.ts depend on?
v3-component-options.d.ts imports 7 module(s): ./common, ./options, ./v3-component-props, ./v3-component-public-instance, ./v3-setup-context, ./vnode, ./vue.
Where is v3-component-options.d.ts in the architecture?
v3-component-options.d.ts is located at types/v3-component-options.d.ts (domain: CompilerSFC, subdomain: ScriptAnalyzer, directory: types).

Analyze Your Own Codebase

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

Try Supermodel Free