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 VueCore Instance 7 imports 5 functions

Entity Profile

Dependency Diagram

graph LR
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be["v3-component-options.d.ts"]
  704ad6e7_d5ea_d033_64be_87fc9e6478c1["./vue"]
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be --> 704ad6e7_d5ea_d033_64be_87fc9e6478c1
  399e579f_d260_79e9_af47_2a8192ddf5af["./vnode"]
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be --> 399e579f_d260_79e9_af47_2a8192ddf5af
  ca28faa9_216b_2023_c479_b397edce4bfb["./options"]
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be --> ca28faa9_216b_2023_c479_b397edce4bfb
  653962b7_947f_5751_c3dd_3df808295fbf["./v3-setup-context"]
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be --> 653962b7_947f_5751_c3dd_3df808295fbf
  21aa15c6_1a35_68d8_6fee_8469d4c5802a["./common"]
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be --> 21aa15c6_1a35_68d8_6fee_8469d4c5802a
  324f926f_5346_c2f9_5e54_481699b9d5c0["./v3-component-props"]
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be --> 324f926f_5346_c2f9_5e54_481699b9d5c0
  96f06168_0871_17bf_9830_69fa4510866a["./v3-component-public-instance"]
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be --> 96f06168_0871_17bf_9830_69fa4510866a
  style d9fec2b1_6d0e_68d7_3cb2_64247b3d22be 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 VueCore domain, Instance 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: VueCore, subdomain: Instance, directory: types).

Analyze Your Own Codebase

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

Try Supermodel Free