TypeScript wrong WebCrypto Algorithm params #23057
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 2.8.1
Search Terms:
WebCrypto, Algorithm
Problem
iv
is required param for AesGcmParams in WebCrypto API, but TypeScript allows to use null value for itThe same problem for another algorithms like AesCbcParams, AesCtrParams, etc.
WebCrypto API https://www.w3.org/TR/WebCryptoAPI/#aes-gcm-params
TypeScript https://github.com/Microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L51-L55
The text was updated successfully, but these errors were encountered: