Home / Type/ ComponentOptionsBase Type — vue Architecture

ComponentOptionsBase Type — vue Architecture

Architecture documentation for the ComponentOptionsBase type/interface in v3-component-options.d.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  a267dcf0_9ed4_50e2_2492_044539ebf2a8["ComponentOptionsBase"]
  4a2ab4fa_5675_20d5_ca91_6198afde3b52["v3-component-options.d.ts"]
  a267dcf0_9ed4_50e2_2492_044539ebf2a8 -->|defined in| 4a2ab4fa_5675_20d5_ca91_6198afde3b52
  style a267dcf0_9ed4_50e2_2492_044539ebf2a8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

types/v3-component-options.d.ts lines 75–117

export interface ComponentOptionsBase<
  Props,
  RawBindings,
  D,
  C extends ComputedOptions,
  M extends MethodOptions,
  Mixin extends ComponentOptionsMixin,
  Extends extends ComponentOptionsMixin,
  Emits extends EmitsOptions,
  EmitNames extends string = string,
  Defaults = {}
> extends Omit<
      Vue2ComponentOptions<Vue, D, M, C, Props>,
      'data' | 'computed' | 'methods' | 'setup' | 'props' | 'mixins' | 'extends'
    >,
    ComponentCustomOptions {
  // allow any options
  [key: string]: any

  // rewrite options api types
  data?: (
    this: CreateComponentPublicInstance<Props, {}, {}, {}, M, Mixin, Extends>,
    vm: CreateComponentPublicInstance<Props, {}, {}, {}, M, Mixin, Extends>
  ) => D
  computed?: C
  methods?: M
  mixins?: Mixin[]
  extends?: Extends
  emits?: (Emits | EmitNames[]) & ThisType<void>
  setup?: SetupFunction<
    Readonly<
      LooseRequired<
        Props &
          UnionToIntersection<ExtractOptionProp<Mixin>> &
          UnionToIntersection<ExtractOptionProp<Extends>>
      >
    >,
    RawBindings,
    Emits
  >

  __defaults?: Defaults
}

Frequently Asked Questions

What is the ComponentOptionsBase type?
ComponentOptionsBase is a type/interface in the vue codebase, defined in types/v3-component-options.d.ts.
Where is ComponentOptionsBase defined?
ComponentOptionsBase is defined in types/v3-component-options.d.ts at line 75.

Analyze Your Own Codebase

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

Try Supermodel Free