Skip to content

Commit

Permalink
fix(types): declare explicit return from EmbeddedJWK
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 27, 2023
1 parent 50b88b2 commit 46934ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/jwk/embedded.ts
@@ -1,4 +1,4 @@
import type { FlattenedJWSInput, JWSHeaderParameters } from '../types.d'
import type { KeyLike, FlattenedJWSInput, JWSHeaderParameters } from '../types.d'
import { importJWK } from '../key/import.js'
import isObject from '../lib/is_object.js'
import { JWSInvalid } from '../util/errors.js'
Expand All @@ -24,7 +24,10 @@ import { JWSInvalid } from '../util/errors.js'
* console.log(payload)
* ```
*/
export async function EmbeddedJWK(protectedHeader: JWSHeaderParameters, token: FlattenedJWSInput) {
export async function EmbeddedJWK(
protectedHeader: JWSHeaderParameters,
token: FlattenedJWSInput,
): Promise<KeyLike> {
const joseHeader = {
...protectedHeader,
...token.header,
Expand Down

0 comments on commit 46934ac

Please sign in to comment.