@riddance/service
Version:
Too much code slows you down, creates risks, increases maintainability burdens, confuses AI. So let's commit less of it.
24 lines (23 loc) • 841 B
TypeScript
import { LogEntry } from '@riddance/host/context';
import { Environment, Json } from '../context.js';
export declare function getLoggedEntries(): LogEntry[];
export declare function clearLoggedEntries(): void;
export declare function getEmitted(): {
topic: string;
type: string;
subject: string;
data?: Json;
messageId?: string;
}[];
export declare function clearEmitted(): void;
export declare function allowErrorLogs(): {
[Symbol.dispose]: () => void;
};
export declare function timeShift(seconds: number): void;
export declare function timeShiftTo(when: Date): void;
export declare function freezeTime(when: Date): void;
export declare function unfreezeTime(): void;
export declare function getEnvironment(): {
[key: string]: string;
};
export declare function setEnvironment(env: Partial<Environment>): void;