Adjust isHex with template return (#1103)
* Adjust isHex with template return * Unneeded assignment * CHANGELOG * typo * Additional HexString types * Additional HexString inputs * Use U8aLike as applicable * typo * Unneeded type * HexString outputs * Export types
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// Copyright 2017-2021 @polkadot/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
export type EncryptedJsonVersion = '0' | '1' | '2' | '3';
|
||||
|
||||
export type EncryptedJsonEncoding = 'none' | 'scrypt' | 'xsalsa20-poly1305';
|
||||
@@ -12,6 +14,6 @@ export interface EncryptedJsonDescriptor {
|
||||
}
|
||||
|
||||
export interface EncryptedJson {
|
||||
encoded: string;
|
||||
encoded: HexString | string;
|
||||
encoding: EncryptedJsonDescriptor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user