Supplied parameters do not match any signature of call target
See original GitHub issueFollowing 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:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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 toindex.d.ts
These helped me. I know that I shouldn’t touch files innode_modules
folder but I don’t know how to do this in other way.It seems that definition is wrong of function
getHMAC
inindex.d.ts
but it is correct in second file. Maybe someone find more beautiful solution but this works for me.