linting(test-user-zero): fix to typing of logger

This commit is contained in:
Matthew Raymer
2025-11-02 06:16:31 +00:00
parent 5635f36b8d
commit 497341f338

View File

@@ -12,7 +12,7 @@
// Lazy import logger to avoid ES module issues when loaded by Capacitor CLI (CommonJS)
// Logger is only used inside functions, not at module scope
let logger: { error: (...args: unknown[]) => void; custom: (emoji: string, ...args: unknown[]) => void } | null = null;
const getLogger = async () => {
const getLogger = async (): Promise<{ error: (...args: unknown[]) => void; custom: (emoji: string, ...args: unknown[]) => void } | null> => {
if (!logger) {
const loggerModule = await import('../lib/logger');
logger = loggerModule.logger;