question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Supplied parameters do not match any signature of call target

See original GitHub issue

Following the code for this tutorial:

Typescript Error
Supplied parameters do not match any signature of call target.

src/providers/twitter-utils.ts

headerParameters.oauth_signature = encodeURIComponent(oauthSignatureObject.getHMAC(encodeURIComponent(secretKey) + "&" + encodedTokenSecret, "TEXT", "SHA-1", "B64"));
var headerParameterKeys = Object.keys(headerParameters);
"@types/jssha": "0.0.29"
"jssha": "1.6.2"
"typescript": "2.0.6"

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Caligatiocommented, Feb 16, 2017

I can do a PR but I admittedly I’m not DefinitelyTyped expert. Should it be:

getHMAC(key:string, inputFormat:string, variant:string, outputFormat:string, outputFormatOpts?:OutputFormatOptions):string;

If so, I’ll submit things

1reaction
ppiatekcommented, Jan 5, 2017

Check these 2 files: \node_modules\@types\jssha\index.d.ts \node_modules\@types\jssha\jssha-1.6.0.d.ts

I copied content of jssha-1.6.0.d.ts and inserted to index.d.ts These helped me. I know that I shouldn’t touch files in node_modules folder but I don’t know how to do this in other way.

It seems that definition is wrong of function getHMAC in index.d.ts but it is correct in second file. Maybe someone find more beautiful solution but this works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does, "supplied parameters do not match any signature ...
And my application works just fine. But, the compiler throws me an error: "TS2346: Supplied parameters do not match any signature of call...
Read more >
Supplied parameters do not match any signature of call target ...
"angular2-ui-switch": "1.2.0", When upgrade to angular 4 and angular\cli 1.0.0 getting this error when compiling with AOT: ERROR in ...
Read more >
Supplied Parameters Do Not Match Any Signature of Call Target
“Supplied parameters do not match any signature of call target.” The code still works and my API test functions but it's just very...
Read more >
Supplied parameters do not match any signature of call target.
Hello guys, I got this error 4 times in my script. I am really a beginner, so I don't understand how to fix...
Read more >
Typescript error "Supplied parameters do not match any ...
Typescript error "Supplied parameters do not match any signature of call target" ; Project, ReSharper ; Subsystem, TypeScript ; Assignee, Nikolay Glushakov.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found