Summary
crypto.subtle.importKey does not support jwk as a key format
Expected vs. Actual Behavior
This is the current specification for the usage of the browser crypto import key format.
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey
https://w3c.github.io/webcrypto/#SubtleCrypto-method-importKey
According to the rule TS2769, crypto.subtle.importKey does not support the key format of "jwk" despite it being explicitly allowed as a format in the MDN provided in the above link.
I would expect this to be an error as the behavior I experienced differs from what is described in the developer docs.
Usage of the code causing the error

Described error in my IDE at the format line variable inside the importKey function call

Playground Link
Not 100% sure how useful this will be
Typescript Lang Playground
Browser Support
Have Tried The Latest Releases
Additional Context
Currently using typescript version 5.9.3
Terminal Output
❯ tsc --version
Version 5.9.3
Currently using @types/web version 0.0.294
❯ pnpm list @types/web
Legend: production dependency, optional only, dev only
<omitted>
devDependencies:
@types/web 0.0.294
Summary
crypto.subtle.importKey does not support jwk as a key format
Expected vs. Actual Behavior
This is the current specification for the usage of the browser crypto import key format.
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey
https://w3c.github.io/webcrypto/#SubtleCrypto-method-importKey
According to the rule TS2769, crypto.subtle.importKey does not support the key format of "jwk" despite it being explicitly allowed as a format in the MDN provided in the above link.
I would expect this to be an error as the behavior I experienced differs from what is described in the developer docs.
Usage of the code causing the error

Described error in my IDE at the format line variable inside the importKey function call

Playground Link
Not 100% sure how useful this will be
Typescript Lang Playground
Browser Support
Have Tried The Latest Releases
@types/web.Additional Context
Currently using typescript version 5.9.3
Terminal Output
Currently using @types/web version 0.0.294