Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong format field in importKeys #11790

Closed
janusz-f opened this issue Aug 20, 2021 · 4 comments
Closed

Wrong format field in importKeys #11790

janusz-f opened this issue Aug 20, 2021 · 4 comments

Comments

@janusz-f
Copy link

passing any data to import key returns such error

error: TS2345 [ERROR]: Argument of type '"jwk"' is not assignable to parameter of type '"raw"'.
        "jwk",

@littledivy
Copy link
Member

importing JWK keys is not implemented. See tracking issue #11690

@janusz-f
Copy link
Author

But at least we could not to limit to "raw" format in typechecking

@lowlighter
Copy link
Contributor

I agree that it should not block type checking, even if JWK keys are not implemented.

It should fall in the default case that is already in place instead:

// TODO(@littledivy): jwk
default:
throw new DOMException("Not implemented", "NotSupportedError");

@lucacasonato
Copy link
Member

Resolved by #11716

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants