Skip to content

Provide lib/target suggestions for findLast/findLastIndex #52220

Closed

Description

Once #49636 goes in, we should ensure that a user gets suggestions for using findLast/findLastIndex when their output target or lib is too low.

function findLastZeroIndex(arr: number[]) {
  return arr.findLastIndex(0);
}

We already do this for other missing methods.

Activity

  1. OliverRadini commented on Jan 13, 2023

    @OliverRadini
    Contributor

    Are you happy for anyone to take a look at this? Looking to find an issue to work on

  2. DanielRosenwasser commented on Jan 14, 2023

    @DanielRosenwasser
    MemberAuthor

    Go for it. The code is in getScriptTargetFeatures. Add a new entry for es2023 containing entries for Array and all the TypedArray variants.

    export function getScriptTargetFeatures(): ScriptTargetFeatures {

  3. locked as resolved and limited conversation to collaborators on Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingFix AvailableA PR has been opened for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions