Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/vuePublic

AugmentingComponentCustomOptions with a function causesTS2769 when using augmention #13009

Open
@6XGate

Description

@6XGate

Version

2.7.14

Reproduction link

github.com

Steps to reproduce

  1. Augment theComponentCustomOptions interface with a new optional member function. Example:funcOption?: (...) => ....
  2. Use the new member function indefineComponent. ExampledefineComponent({ name: 'CompName', funcOption: (...) => ... }).
  3. Run a build with type-checking. Example:npm run build withvite andvue-tsc installed and setup.

Using therepro link:

  1. Clone the repo
  2. Runnpm ci
  3. Runnpm run build

What is expected?

That the build would succeed without error.

What is actually happening?

ATS2769 error results when built. It seems TypeScript is attempting to use the functional component overload rather than one of the normal overloads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp