Skip to content

hmac: Argument of type 'Sha256Constructor' is not assignable to parameter of type 'BlockHash<any>'. #31

Open

Description

@joelamltc

image

How do I get rid of this Typings error?

Activity

  1. jn-sena commented on Jun 8, 2021

    @jn-sena

    I know this is a really late reply, but for anyone who is still getting the error:

    You can use TypeScript casts as a workaround for now:

    hash.hmac(hash.sha256 as any, key)

    or

    hash.hmac(hash.sha256 as unknown as BlockHash<any>, key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions