UNPKG

@telegram-apps/bridge

Version:

TypeScript package to provide communication layer between Mini App and Telegram application.

10 lines (9 loc) 412 B
/** * Creates a base-64-url encoded ASCII string from the passed value. * @param value - the value to encode. * @see Learn more about base64url: * https://herongyang.com/Encoding/Base64URL-Encoding-Algorithm.html * @see Source: * https://developer.mozilla.org/ru/docs/Glossary/Base64#solution_1_–_escaping_the_string_before_encoding_it */ export declare function encodeBase64Url(value: string): string;