Skip to content

Commit d11ab4b

Browse files
authored
Merge pull request #45 from webmaster128/decode-user-input
Add overload to Bech32.decode to handle arbitrary string input
2 parents 8560dd3 + f152925 commit d11ab4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ export interface Bech32 {
671671
str: `${Prefix}1${string}`,
672672
limit?: number | false
673673
): Bech32Decoded<Prefix>;
674+
decode(str: string, limit?: number | false): Bech32Decoded;
674675
encodeFromBytes(prefix: string, bytes: Uint8Array): string;
675676
decodeToBytes(str: string): Bech32DecodedWithArray;
676677
decodeUnsafe(str: string, limit?: number | false): void | Bech32Decoded<string>;

0 commit comments

Comments
 (0)