Closed ffflorian closed 3 years ago
When using webcrypto-core with TypeScript 4.4, I get the following errors:
webcrypto-core
node_modules/webcrypto-core/build/types/aes/cmac.d.ts:6:37 - error TS2304: Cannot find name 'AesCmacParams'. 6 checkAlgorithmParams(algorithm: AesCmacParams): void; ~~~~~~~~~~~~~ node_modules/webcrypto-core/build/types/aes/cmac.d.ts:7:32 - error TS2304: Cannot find name 'AesCmacParams'. 7 abstract onSign(algorithm: AesCmacParams, key: CryptoKey, data: ArrayBuffer, ...args: any[]): Promise<ArrayBuffer>; ~~~~~~~~~~~~~ node_modules/webcrypto-core/build/types/aes/cmac.d.ts:8:34 - error TS2304: Cannot find name 'AesCmacParams'. 8 abstract onVerify(algorithm: AesCmacParams, key: CryptoKey, signature: ArrayBuffer, data: ArrayBuffer, ...args: any[]): Promise<boolean>;
In my tsconfig.json, the required libs are added already:
tsconfig.json
... "lib": ["dom", "esnext"], ...
Fixed in webcrypto-core@1.2.1. Please try it
webcrypto-core@1.2.1
It works, thanks!
When using
webcrypto-core
with TypeScript 4.4, I get the following errors:In my
tsconfig.json
, the required libs are added already: