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

[explicit-module-boundary-types] New option to allow unspecified return type if there are overload signatures #4586

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@Josh-Cena

Description

@Josh-Cena
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I haveread the FAQ and my problem is not listed.

Repro

Playground

{"rules": {"@typescript-eslint/explicit-module-boundary-types":"error"  }}
exportfunctionfoo(a:string):string;exportfunctionfoo(a:number):number;exportfunctionfoo(a:unknown){returna;}

Expected Result

I'd like a new option that makes this code pass, since the implementation signature is not visible to the outside, while theboundary, defined by the overload signatures, is well-typed.

Actual Result

This errors, even with all theallow* options turned on.

Versions

packageversion
@typescript-eslint/eslint-plugin5.12.1
@typescript-eslint/parser5.12.1
TypeScript4.5.5
ESLint8.9.0
node17.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    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