mcp-appium-visual
Version:
MCP Server for Appium mobile automation with visual recovery
18 lines • 794 B
JavaScript
/**
* This file fixes the Jimp import and usage based on the module's structure
*/
// We need to use the require approach to get all the properties correctly
// TypeScript doesn't recognize the nested structure properly with ES imports
const JimpOriginal = require("jimp");
// Cast the module with our interface
const JimpTyped = JimpOriginal;
// Access module functions directly and Jimp class
export const JimpModule = JimpTyped;
// Export the Jimp class for read operations
export const Jimp = JimpTyped.Jimp;
// Export the utility functions directly for easier access
export const intToRGBA = JimpTyped.intToRGBA;
export const rgbaToInt = JimpTyped.rgbaToInt;
export const colorDiff = JimpTyped.colorDiff;
export const limit255 = JimpTyped.limit255;
//# sourceMappingURL=jimp-fixed.js.map