hash_util: Fix wrong type specified for hash parameter.

This commit is contained in:
Aman Agrawal
2024-04-27 06:22:01 +00:00
committed by Tim Abbott
parent 478a4a59bc
commit f786c2c5d7

View File

@@ -156,7 +156,7 @@ export function search_public_streams_notice_url(terms: NarrowTerm[]): string {
return search_terms_to_hash([public_operator, ...terms]);
}
export function parse_narrow(hash: string): NarrowTerm[] | undefined {
export function parse_narrow(hash: string[]): NarrowTerm[] | undefined {
// This will throw an exception when passed an invalid hash
// at the decodeHashComponent call, handle appropriately.
let i;