UNPKG

screenkitten

Version:

A cross-platform Node.js library for taking screenshots on iOS simulators and Android devices/emulators

17 lines 837 B
import type { OnErrorHandler } from './types'; /** * Handles errors based on the provided error handler strategy * @param handler - The error handling strategy ('throw', 'ignore', or a function) * @param error - The error to handle * @param result - The result to return when not throwing * @returns The result if not throwing, otherwise throws the error */ export declare function doHandleError<R>(handler: OnErrorHandler | undefined, error: Error, result: R): R; /** * Generates a unique temporary file path for screenshots * @param platform - The platform ('android' or 'ios') * @param extension - The file extension (e.g., 'png', 'jpeg') * @returns A unique temporary file path */ export declare function createTempScreenshotPath(platform: 'android' | 'ios', extension: string): string; //# sourceMappingURL=utils.d.ts.map