<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://docs.yastre.top/index.php?action=history&amp;feed=atom&amp;title=Winerr.js%2F%D0%A4%D0%B0%D0%B9%D0%BB_%D1%82%D0%B8%D0%BF%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8_0.3.6</id>
	<title>Winerr.js/Файл типизации 0.3.6 - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://docs.yastre.top/index.php?action=history&amp;feed=atom&amp;title=Winerr.js%2F%D0%A4%D0%B0%D0%B9%D0%BB_%D1%82%D0%B8%D0%BF%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8_0.3.6"/>
	<link rel="alternate" type="text/html" href="https://docs.yastre.top/index.php?title=Winerr.js/%D0%A4%D0%B0%D0%B9%D0%BB_%D1%82%D0%B8%D0%BF%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8_0.3.6&amp;action=history"/>
	<updated>2026-06-13T14:33:42Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://docs.yastre.top/index.php?title=Winerr.js/%D0%A4%D0%B0%D0%B9%D0%BB_%D1%82%D0%B8%D0%BF%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8_0.3.6&amp;diff=487&amp;oldid=prev</id>
		<title>DimaYastrebov: Новая страница: «&lt;syntaxhighlight lang=&quot;typescript&quot;&gt; import * as puppeteer from &quot;puppeteer&quot;; export type ButtonTypes = &#039;DEFAULT&#039; | &#039;RECOMMENDED&#039; | &#039;DISABLED&#039;; export declare const ButtonTypeValues: Record&lt;ButtonTypes, number&gt;; export type SystemTypes = &#039;Windows_1_0&#039; | &#039;Windows_3_1&#039; | &#039;Windows_95&#039; | &#039;Windows_98&#039; | &#039;Windows_2000&#039; | &#039;Windows_WH&#039; | &#039;Windows_XP&#039; | &#039;Windows_LH4093&#039; | &#039;Windows_Vista&#039; | &#039;Windows_7&#039; | &#039;Windows_8&#039; | &#039;Windows_10&#039; | &#039;Windows_11&#039;; export declare const Sy...»</title>
		<link rel="alternate" type="text/html" href="https://docs.yastre.top/index.php?title=Winerr.js/%D0%A4%D0%B0%D0%B9%D0%BB_%D1%82%D0%B8%D0%BF%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8_0.3.6&amp;diff=487&amp;oldid=prev"/>
		<updated>2026-03-25T02:23:37Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «&amp;lt;syntaxhighlight lang=&amp;quot;typescript&amp;quot;&amp;gt; import * as puppeteer from &amp;quot;puppeteer&amp;quot;; export type ButtonTypes = &amp;#039;DEFAULT&amp;#039; | &amp;#039;RECOMMENDED&amp;#039; | &amp;#039;DISABLED&amp;#039;; export declare const ButtonTypeValues: Record&amp;lt;ButtonTypes, number&amp;gt;; export type SystemTypes = &amp;#039;Windows_1_0&amp;#039; | &amp;#039;Windows_3_1&amp;#039; | &amp;#039;Windows_95&amp;#039; | &amp;#039;Windows_98&amp;#039; | &amp;#039;Windows_2000&amp;#039; | &amp;#039;Windows_WH&amp;#039; | &amp;#039;Windows_XP&amp;#039; | &amp;#039;Windows_LH4093&amp;#039; | &amp;#039;Windows_Vista&amp;#039; | &amp;#039;Windows_7&amp;#039; | &amp;#039;Windows_8&amp;#039; | &amp;#039;Windows_10&amp;#039; | &amp;#039;Windows_11&amp;#039;; export declare const Sy...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;typescript&amp;quot;&amp;gt;&lt;br /&gt;
import * as puppeteer from &amp;quot;puppeteer&amp;quot;;&lt;br /&gt;
export type ButtonTypes = &amp;#039;DEFAULT&amp;#039; | &amp;#039;RECOMMENDED&amp;#039; | &amp;#039;DISABLED&amp;#039;;&lt;br /&gt;
export declare const ButtonTypeValues: Record&amp;lt;ButtonTypes, number&amp;gt;;&lt;br /&gt;
export type SystemTypes = &amp;#039;Windows_1_0&amp;#039; | &amp;#039;Windows_3_1&amp;#039; | &amp;#039;Windows_95&amp;#039; | &amp;#039;Windows_98&amp;#039; | &amp;#039;Windows_2000&amp;#039; | &amp;#039;Windows_WH&amp;#039; | &amp;#039;Windows_XP&amp;#039; | &amp;#039;Windows_LH4093&amp;#039; | &amp;#039;Windows_Vista&amp;#039; | &amp;#039;Windows_7&amp;#039; | &amp;#039;Windows_8&amp;#039; | &amp;#039;Windows_10&amp;#039; | &amp;#039;Windows_11&amp;#039;;&lt;br /&gt;
export declare const SystemTypeValues: Record&amp;lt;SystemTypes, string&amp;gt;;&lt;br /&gt;
interface FormattedButton {&lt;br /&gt;
    /**&lt;br /&gt;
     * Name of the button.&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    name: string;&lt;br /&gt;
    /**&lt;br /&gt;
     * If true - the button is disabled.&lt;br /&gt;
     * @type {boolean}&lt;br /&gt;
     */&lt;br /&gt;
    disabled: boolean;&lt;br /&gt;
    /**&lt;br /&gt;
     * If true - the button is recommended.&lt;br /&gt;
     * @type {boolean}&lt;br /&gt;
     */&lt;br /&gt;
    rec: boolean;&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
 * Parameters of some button.&lt;br /&gt;
 * @interface ButtonOptions&lt;br /&gt;
 */&lt;br /&gt;
interface Button {&lt;br /&gt;
    /**&lt;br /&gt;
     * Type of the button.&lt;br /&gt;
     * @type {number}&lt;br /&gt;
     */&lt;br /&gt;
    type: ButtonTypes | 0 | 1 | 2;&lt;br /&gt;
    /**&lt;br /&gt;
     * Text of the button.&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    text: string;&lt;br /&gt;
    /**&lt;br /&gt;
     * Converts the button to a format suitable for the Winerr.&lt;br /&gt;
     * @returns {FormattedButton}&lt;br /&gt;
     * @type {FormattedButton}&lt;br /&gt;
     */&lt;br /&gt;
    toFormat(): FormattedButton;&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
 * A handy (or not so handy) button builder!&lt;br /&gt;
 * @class ButtonBuilder&lt;br /&gt;
 */&lt;br /&gt;
export declare class ButtonBuilder {&lt;br /&gt;
    private button;&lt;br /&gt;
    constructor();&lt;br /&gt;
    /**&lt;br /&gt;
     * Sets the button text.&lt;br /&gt;
     * @param {string} text - Text of the button. Use ButtonTypes enum.&lt;br /&gt;
     * @returns {ButtonBuilder}&lt;br /&gt;
     */&lt;br /&gt;
    setText(text: string): ButtonBuilder;&lt;br /&gt;
    /**&lt;br /&gt;
     * Sets the button type. Use ButtonTypes enum.&lt;br /&gt;
     * @param {number} type - Type of the button.&lt;br /&gt;
     * @returns {ButtonBuilder}&lt;br /&gt;
     */&lt;br /&gt;
    setType(type: ButtonTypes): ButtonBuilder;&lt;br /&gt;
    /**&lt;br /&gt;
     * Returns the button object.&lt;br /&gt;
     * @returns {Button}&lt;br /&gt;
     */&lt;br /&gt;
    build(): Button;&lt;br /&gt;
}&lt;br /&gt;
interface ErrorOptions {&lt;br /&gt;
    /**&lt;br /&gt;
     * System type for the error.&lt;br /&gt;
     * Use SystemTypes enum.&lt;br /&gt;
     * @type {SystemTypes}&lt;br /&gt;
     */&lt;br /&gt;
    system: SystemTypes;&lt;br /&gt;
    /**&lt;br /&gt;
     * Title of the error.&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    title: string;&lt;br /&gt;
    /**&lt;br /&gt;
     * Text of the error.&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    text: string;&lt;br /&gt;
    /**&lt;br /&gt;
     * Icon number for the error.&lt;br /&gt;
     * @type {number}&lt;br /&gt;
     */&lt;br /&gt;
    icon: number;&lt;br /&gt;
    /**&lt;br /&gt;
     * If true - the cross will be INACTIVE.&lt;br /&gt;
     * @type {boolean}&lt;br /&gt;
     */&lt;br /&gt;
    cross: boolean;&lt;br /&gt;
    /**&lt;br /&gt;
     * Array of buttons for the error.&lt;br /&gt;
     * Use ButtonBuilder to create buttons,&lt;br /&gt;
     * and toFormat() method to convert them to the&lt;br /&gt;
     * format suitable for Winerr.&lt;br /&gt;
     * @type {Button[]}&lt;br /&gt;
     */&lt;br /&gt;
    buttons?: [Button?, Button?, Button?];&lt;br /&gt;
    /**&lt;br /&gt;
     * Color of the frame (Windows 8 only).&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    frameColor?: string;&lt;br /&gt;
    /**&lt;br /&gt;
     * Color of the primary text (Windows 95 - 2000 only).&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    primaryColor?: string;&lt;br /&gt;
    /**&lt;br /&gt;
     * Color of the secondary text (Windows 95 - 2000 only).&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    secondaryColor?: string;&lt;br /&gt;
    /**&lt;br /&gt;
     * If not specified or false - create() returns buffer, if toBase64 is true - returns base64 string (starts with &amp;quot;data:image/png;base64,&amp;quot;)&lt;br /&gt;
     * @type {boolean}&lt;br /&gt;
     */&lt;br /&gt;
    toBase64: boolean;&lt;br /&gt;
    /**&lt;br /&gt;
     * If specified saves to the selected file (overrides toBase64)&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    path?: string;&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
 * Parameters for initializing the Winerr class.&lt;br /&gt;
 * @interface WinerrOptions&lt;br /&gt;
 */&lt;br /&gt;
interface WinerrOptions {&lt;br /&gt;
    /**&lt;br /&gt;
     * Base URL for Winerr.&lt;br /&gt;
     * Default is https://shikoshib.ru/tools/winerr&lt;br /&gt;
     * @type {string}&lt;br /&gt;
     */&lt;br /&gt;
    baseURL?: string;&lt;br /&gt;
    /**&lt;br /&gt;
     * Puppeteer browser instance that will be used by Winerr to create errors.&lt;br /&gt;
     * @type {puppeteer.Browser}&lt;br /&gt;
     */&lt;br /&gt;
    browser: puppeteer.Browser;&lt;br /&gt;
    /**&lt;br /&gt;
     * If true, enables detailed logging to the console.&lt;br /&gt;
     * @type {boolean}&lt;br /&gt;
     */&lt;br /&gt;
    debug?: boolean;&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
 * Allows generating errors using Winerr with the official Winerr or a compatible server directly from the code.&lt;br /&gt;
 * @class Winerr&lt;br /&gt;
 */&lt;br /&gt;
export declare class Winerr {&lt;br /&gt;
    baseURL?: string;&lt;br /&gt;
    browser: puppeteer.Browser;&lt;br /&gt;
    debug: boolean;&lt;br /&gt;
    /**&lt;br /&gt;
     * Creates an instance of the Winerr class.&lt;br /&gt;
     */&lt;br /&gt;
    constructor(options: WinerrOptions);&lt;br /&gt;
    /**&lt;br /&gt;
     * image method for creating error images.&lt;br /&gt;
     */&lt;br /&gt;
    image: {&lt;br /&gt;
        parent: Winerr;&lt;br /&gt;
        /**&lt;br /&gt;
         * Creates an error image.&lt;br /&gt;
         * @param {ErrorOptions} options - Options for the error image.&lt;br /&gt;
         * @returns {Promise&amp;lt;string | Buffer | void&amp;gt;} Returns a base64 string or a buffer of the error image.&lt;br /&gt;
         */&lt;br /&gt;
        create(options: ErrorOptions): Promise&amp;lt;string | Buffer | boolean | void&amp;gt;;&lt;br /&gt;
    };&lt;br /&gt;
}&lt;br /&gt;
export {};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>DimaYastrebov</name></author>
	</entry>
</feed>