bugy
Version:
Модуль, добавляющий дополнительную кнопку в приложения типа VK Mini Apps
42 lines (41 loc) • 2.04 kB
TypeScript
declare const secondButtonPlace: HTMLDivElement;
declare const secondButton: HTMLButtonElement;
declare const secondStyle: HTMLStyleElement;
declare const bugIcon: SVGSVGElement;
declare const bugIconPath: SVGPathElement;
/** @description создаёт дополнительную кнопку
* @param {any} onclick вызывает функцию
* @param {any} text содержимое кнопки, может быть любым элементом
*/
declare const bug: ({ onclick, text, }: {
onclick?: any;
text?: any;
}) => void;
/** @description функция, возвращающая HTMLDivElement с иконкой слева и текстом справа.
* @param {any} icon Иконка для div элемента.
* @param {any} text Текст для div элемента.
* @return {HTMLDivElement} div элемент, с иконкой и текстом.
*/
declare const bugIconText: ({ icon, text }: {
icon?: any;
text?: any;
}) => HTMLDivElement;
/** @description открывает любую ссылку.
* @param {string} * ссылка, которую необходимо открыть.
*/
declare const openLink: (url?: string) => void;
/** @description открывает диалог внутри VK.
* @param {number} id пользователя или сообщества, для сообществ отрицательный id.
*/
declare const openDialog: ({ id }: {
id?: number | undefined;
}) => void;
/** @description перенаправит пользователя на страницу создания отчёта.
* @param {number} id идентификатор продукта.
* @param {string} title текст заголовока отчёта.
*/
declare const bugCreateReport: ({ id, title }: {
id?: number | undefined;
title?: string | undefined;
}) => void;
export { bugCreateReport, openDialog, openLink, bugIconText, bug, secondButtonPlace, secondButton, secondStyle, bugIcon, bugIconPath, };