Skip to content

Variable function not being detected as functions #96

@d1820

Description

@d1820

When a function is defined as a variable in arrow function format it is not being detected as a function

 private setCachedRoutes = (routes: Record<string, number[][]>): void => {

  };

This shows up in outline map as a variable. While technically that is true it is a bit misleading as its really a arrow function which as we all know helps preserve this

When looping over the file and detecting types search the whole line for => if its detected classify it as a function
OR
expose a regex rule map i can define my own detection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions