Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ddo/oauth-1.0a
Browse files Browse the repository at this point in the history
  • Loading branch information
ddo committed Jun 5, 2019
2 parents 3f23f9d + 28711ac commit 2e1cbe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oauth-1.0a.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ declare namespace OAuth {
* Note: the key is used for implementation HMAC algorithms for the body hash,
* but typically it should return SHA1 hash of base_string.
*/
export type BodyHashFunction = (base_string, key) => string;
export type BodyHashFunction = (base_string: string, key: string) => string;

/**
* OAuth key/secret pair.
Expand All @@ -140,7 +140,7 @@ declare namespace OAuth {
/**
* Method used to hash the the OAuth and form/querystring data.
*/
export type HashFunction = (base_string, key) => string;
export type HashFunction = (base_string: string, key: string) => string;

/**
* Authorization header.
Expand Down

0 comments on commit 2e1cbe4

Please sign in to comment.