scriptable-testlab
Version:
A lightweight, efficient tool designed to manage and update scripts for Scriptable.
34 lines (32 loc) • 816 B
TypeScript
/**
* Global functions implementation
*/
/**
* Logs a message to the console
*/
declare function log(message: any): void;
/**
* Logs a warning message to the console
*/
declare function logWarning(message: any): void;
/**
* Logs an error message to the console
*/
declare function logError(message: any): void;
/**
* Converts base64 string to ascii
*/
declare function atob(str: string): string;
/**
* Converts ascii string to base64
*/
declare function btoa(str: string): string;
/**
* Imports a module from the specified path
*
* @param modulePath - Path to the module to import
* @returns The imported module
* @throws {Error} When module cannot be found or imported
*/
declare function importModule(modulePath: string): unknown;
export { atob, btoa, importModule, log, logError, logWarning };