Files
zulip/static/shared/js/internal_url.js.flow
Austin Riba df1d395d4e shared: Add flow types for internal_url.
Adds flow type declarations for the shared internal_url module making
it integrate better with zulip-mobile.
2022-03-02 16:42:45 -08:00

31 lines
709 B
Plaintext

/**
* @flow strict
*/
"use strict";
declare export function encodeHashComponent(str: string): string;
declare export function decodeHashComponent(str: string): string;
declare export function stream_id_to_slug(
stream_id: number,
maybe_get_stream_name: (id: number) => ?string,
): string;
declare export function encode_stream_id(
stream_id: number,
maybe_get_stream_name: (id: number) => ?string,
): string;
declare export function by_stream_url(
stream_id: number,
maybe_get_stream_name: (id: number) => ?string,
): string;
declare export function by_stream_topic_url(
stream_id: number,
topic: string,
maybe_get_stream_name: (id: number) => ?string,
): string;