Microsoft/TypeScript
GitHub ã§èŠãIncorrect type declaration for CryptoKeyPair
Open
#46,036 opened on 2021幎9æ23æ¥
BugDomain: lib.d.tsHelp Wanted
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
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;
}