Microsoft/TypeScript
Incorrect type declaration for CryptoKeyPair
Ouverte
#46 036 ouverte le 23 sept. 2021
BugDomain: lib.d.tsHelp Wanted
Métriques du dépôt
- Stars
- (108 860 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
Bug Report
🔎 Search Terms
WebCrypto, CryptoKeyPair
🕗 Version & Regression Information
- This changed between versions 4.3 and 4.4
Description
Here is W3C spec for CryptoKeyPair dictionary.
In TS v4.4.3 type declaration for CryptoKeyPair is:
interface CryptoKeyPair {
privateKey?: CryptoKey;
publicKey?: CryptoKey;
}
In TS v.4.3.5:
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}