mirror of
https://github.com/danbulant/jose
synced 2026-05-24 20:41:46 +00:00
lint: prettier over the type casting syntax
This commit is contained in:
parent
55e8bfed32
commit
cfd2d261ca
2 changed files with 3 additions and 2 deletions
|
|
@ -57,7 +57,8 @@ export const ephemeralKeyToPublicJWK: EphemeralKeyToPublicJwkFunction = async fu
|
|||
key: CryptoKey,
|
||||
) {
|
||||
ensureSecureContext()
|
||||
const { crv, kty, x, y } = <EpkJwk>(await crypto.subtle.exportKey('jwk', key))
|
||||
// eslint-disable-next-line @typescript-eslint/keyword-spacing
|
||||
const { crv, kty, x, y } = <EpkJwk>await crypto.subtle.exportKey('jwk', key)
|
||||
return { crv, kty, x, y }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ const parse: JWKParseFunction = async (jwk: JWK): Promise<CryptoKey> => {
|
|||
keyData,
|
||||
algorithm,
|
||||
jwk.ext ?? false,
|
||||
(<KeyUsage[]>jwk.key_ops) ?? keyUsages,
|
||||
<KeyUsage[]>jwk.key_ops ?? keyUsages,
|
||||
)
|
||||
}
|
||||
export default parse
|
||||
|
|
|
|||
Loading…
Reference in a new issue