You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Simplify types
This commit is contained in:
@@ -79,7 +79,7 @@ async function confirmToDismiss(): Promise<boolean> {
|
|||||||
|
|
||||||
function makeInputToKey(
|
function makeInputToKey(
|
||||||
keyInfo: ISecretStorageKeyInfo,
|
keyInfo: ISecretStorageKeyInfo,
|
||||||
): ({ passphrase, recoveryKey }: { passphrase: string, recoveryKey: string }) => Promise<Uint8Array> {
|
): (keyParams: { passphrase: string, recoveryKey: string }) => Promise<Uint8Array> {
|
||||||
return async ({ passphrase, recoveryKey }) => {
|
return async ({ passphrase, recoveryKey }) => {
|
||||||
if (passphrase) {
|
if (passphrase) {
|
||||||
return deriveKey(
|
return deriveKey(
|
||||||
|
|||||||
Reference in New Issue
Block a user