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
  52fb8570_d0a0_fe87_53b6_00b484148a0b["ComponentOptionsBase"]
  d9fec2b1_6d0e_68d7_3cb2_64247b3d22be["v3-component-options.d.ts"]
  52fb8570_d0a0_fe87_53b6_00b484148a0b -->|defined in| d9fec2b1_6d0e_68d7_3cb2_64247b3d22be
  style 52fb8570_d0a0_fe87_53b6_00b484148a0b 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