MetaMask / browser-passworder

A simple browserifiable module for encrypting and decrypting JSON-serializable objects with a password.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regression in `decrypt` function return type

Mrtenz opened this issue · comments

Before #29, the decrypt function would return a Promise with a generic R. It was changed to return Promise<unknown> instead, which breaks the implementation in snaps-monorepo, because unknown is not assignable to the Json type, while the generic R was.