lint: prettier over the type casting syntax

This commit is contained in:
Filip Skokan 2020-12-16 11:26:54 +01:00
parent 55e8bfed32
commit cfd2d261ca
2 changed files with 3 additions and 2 deletions

View file

@ -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 }
}

View file

@ -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