UNPKG

scriptable-testlab

Version:

A lightweight, efficient tool designed to manage and update scripts for Scriptable.

37 lines (34 loc) 795 B
import { AbsModule } from 'scriptable-abstract'; interface ModuleState { filename: string; exports: Record<string, unknown>; } /** * Mock implementation of Scriptable's module global variable * Provides functionality for module-related operations * * @implements Module */ declare class MockModule extends AbsModule<ModuleState> { static get instance(): MockModule; constructor(); /** * @inheritdoc */ get filename(): string; /** * @inheritdoc */ get exports(): Record<string, unknown>; /** * @additional * Set the module filename */ setFilename(filename: string): void; /** * @additional * Set module exports */ setExports(exports: Record<string, unknown>): void; } export { MockModule };