if (mnemonicSalt !== undefined && typeof mnemonicSalt !== 'string') {
throw new TypeError('Mnemonic salt must be a string')
}
- const data: Record<string, string | ArrayBuffer> = {
+ const data: Record<string, string | ArrayBuffer> & Record<'action', 'load'> = {
action: 'load',
type: wallet.type,
id: wallet.id,
if (type === 'Ledger') {
return await Ledger.verify(secret)
} else {
- const data: Record<string, string | ArrayBuffer> = {
+ const data: Record<string, string | ArrayBuffer> & Record<'action', 'verify'> = {
action: 'verify'
}
if (/^(?:[A-F0-9]{64}){1,2}$/i.test(secret)) {