11/**
22 * Standard logger interface for vue-skuilder packages
3- *
3+ *
44 * This interface enables dependency injection of logging functionality,
55 * allowing different runtime contexts to provide appropriate logger implementations:
66 * - Node.js contexts can use Winston
77 * - Browser contexts can use console wrappers
88 * - Test contexts can use mock loggers
99 */
1010export interface SkLogger {
11- debug ( message : string , ...args : any [ ] ) : void ;
12- info ( message : string , ...args : any [ ] ) : void ;
13- warn ( message : string , ...args : any [ ] ) : void ;
14- error ( message : string , ...args : any [ ] ) : void ;
11+ debug ( message : string , ...args : unknown [ ] ) : void ;
12+ info ( message : string , ...args : unknown [ ] ) : void ;
13+ warn ( message : string , ...args : unknown [ ] ) : void ;
14+ error ( message : string , ...args : unknown [ ] ) : void ;
1515}
1616
1717/**
@@ -29,8 +29,8 @@ export const noOpLogger: SkLogger = {
2929 * Uses console methods with appropriate ESLint suppressions
3030 */
3131export const consoleLogger : SkLogger = {
32- debug : ( message : string , ...args : any [ ] ) => console . debug ( message , ...args ) , // eslint-disable-line no-console
33- info : ( message : string , ...args : any [ ] ) => console . info ( message , ...args ) , // eslint-disable-line no-console
34- warn : ( message : string , ...args : any [ ] ) => console . warn ( message , ...args ) , // eslint-disable-line no-console
35- error : ( message : string , ...args : any [ ] ) => console . error ( message , ...args ) , // eslint-disable-line no-console
36- } ;
32+ debug : ( message : string , ...args : unknown [ ] ) => console . debug ( message , ...args ) , // eslint-disable-line no-console
33+ info : ( message : string , ...args : unknown [ ] ) => console . info ( message , ...args ) , // eslint-disable-line no-console
34+ warn : ( message : string , ...args : unknown [ ] ) => console . warn ( message , ...args ) , // eslint-disable-line no-console
35+ error : ( message : string , ...args : unknown [ ] ) => console . error ( message , ...args ) , // eslint-disable-line no-console
36+ } ;
0 commit comments