Microsoft/TypeScript
Incorrect type declaration for CryptoKeyPair
Aberta
#46.036 aberto em 23 de set. de 2021
BugDomain: lib.d.tsHelp Wanted
Métricas do repositório
- Stars
- (108.860 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
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;
}