mirror of https://github.com/vector-im/riot-web
Simplify types
parent
2698a12a6f
commit
6498f3fcef
|
@ -79,7 +79,7 @@ async function confirmToDismiss(): Promise<boolean> {
|
|||
|
||||
function makeInputToKey(
|
||||
keyInfo: ISecretStorageKeyInfo,
|
||||
): ({ passphrase, recoveryKey }: { passphrase: string, recoveryKey: string }) => Promise<Uint8Array> {
|
||||
): (keyParams: { passphrase: string, recoveryKey: string }) => Promise<Uint8Array> {
|
||||
return async ({ passphrase, recoveryKey }) => {
|
||||
if (passphrase) {
|
||||
return deriveKey(
|
||||
|
|
Loading…
Reference in New Issue