Skip to content

[explicit-function-return-type] Unfortunate typo in documentation #769

@ghost

Description

In the last example under allowTypedFunctionExpressions, functionWithObjectArg is written as

declare functionWithObjectArg(arg: { meth: () => number });
functionWithObjectArg({
  meth() {
    return 1;
  },
});

rather than what I imagine was the intended code:

declare functionWithObjectArg(arg: { method: () => number });
functionWithObjectArg({
  method() {
    return 1;
  },
});

My apologies if I have mislabeled this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation ("docs") that needs adding/updatinghas prthere is a PR raised to close thispackage: 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