UNPKG

@ahmic/autoit-js

Version:
35 lines (34 loc) 950 B
/** * Retrieves the error code set by the last AutoIt function call. * * @returns The error code. * * @example * ```typescript * import { errorSync } from '@ahmic/autoit-js'; * * const result = errorSync(); * * console.log(result); // Output: 1 (example output, actual value depends on the last AutoIt function call) * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/SetError.htm */ export declare function errorSync(): number; /** * Retrieves the error code set by the last AutoIt function call. * * @returns A promise that resolves to the error code. * * @example * ```typescript * import { error } from '@ahmic/autoit-js'; * * const result = await error(); * * console.log(result); // Output: 1 (example output, actual value depends on the last AutoIt function call) * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/SetError.htm */ export declare function error(): Promise<number>;