Skip to content

Commit

Permalink
Add types for CryptoJS functionality used by web’s crypto.js
Browse files Browse the repository at this point in the history
Preparation for converting platforms’ crypto.js files to TypeScript
(#1252).

We’ll be removing these types shortly, though, when we stop using the
CryptoJS library in #1239.
  • Loading branch information
lawrence-forooghian committed Jun 5, 2023
1 parent 49aa6e6 commit 53c3a55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/types/crypto-js.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
declare module 'crypto-js/build' {
import CryptoJS from 'crypto-js';
import algo = CryptoJS.algo;
export { algo };
}

declare module 'crypto-js/build/enc-base64' {
import CryptoJS from 'crypto-js';
export const parse: typeof CryptoJS.enc.Base64.parse;
Expand Down

0 comments on commit 53c3a55

Please sign in to comment.