git-last-commit icon indicating copy to clipboard operation
git-last-commit copied to clipboard

"Expected 1 arguments, but got 2." error when trying to define a custom repo location

Open Spotlightsrule opened this issue 4 years ago • 4 comments

I am using this repository in a TypeScript project, but I get the following error when trying to define a custom repository location: Expected 1 arguments, but got 2.ts(2554). I am using the code snippet defined in the README that describes how to define a custom repository location.

Spotlightsrule avatar Mar 17 '20 21:03 Spotlightsrule

Which line results in error?

seymen avatar Mar 18 '20 10:03 seymen

Line 6 in the second usage example gives an error when I try to define a custom repository location

Spotlightsrule avatar Mar 18 '20 22:03 Spotlightsrule

@seymen Hi is there any chance to fix this problem? I want to define custom repo location and it's not working, I'm using TypeScript. d.ts seems to be out of date Screenshot 2021-08-11 at 12 45 14

shwarcu avatar Aug 11 '21 10:08 shwarcu

Hi @Spotlightsrule and @seymen I opened a pull request to address this issue https://github.com/seymen/git-last-commit/pull/26 , can you take a look? 👀

shwarcu avatar Aug 12 '21 10:08 shwarcu