There's only a single option to create a JS function

Answered

When I type a JS function to call it and the function doesn't exist, I see only one option to create it and that option is to create a local function. This means a function inside my function. var functionName = function() { throw new Error("Not implemented"); };

I using TypeScript. I would like to see an option to create a non local function and it looks like this:

functionName = (): void => {
}

0
1 comment
Official comment

Hello Abdu,

Please accept our apologies that we kept you so long without an answer.

Such functionality is indeed yet to implement in ReSharper and there is only one way to automatically create a function.

In order to address the request, I have created a feature issue in our tracker: https://youtrack.jetbrains.com/issue/RSRP-481556

Please vote or left a comment to give this feature more chances to be added in upcoming releases.

Please sign in to leave a comment.