@art-ws/slf 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/core/logger.d.ts +3 -3
- package/package.json +1 -1
package/dist/es/core/logger.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Logger } from "./types";
|
2
2
|
export declare const Class: FunctionConstructor;
|
3
|
-
export type Class<T =
|
3
|
+
export type Class<T = any> = new (...args: any[]) => T;
|
4
4
|
export declare class SlfAssertDSL {
|
5
5
|
o: object;
|
6
6
|
private readonly value;
|
@@ -13,6 +13,6 @@ export declare class SlfAssertDSL {
|
|
13
13
|
}
|
14
14
|
export declare function className(classProto: Class<any>): string;
|
15
15
|
export declare function classNameFromDef(classProto: Class<any>): string;
|
16
|
-
export type LoggerArg = string | Class<
|
16
|
+
export type LoggerArg = string | Class<any>;
|
17
17
|
export declare function getCallerFilename(e4: string): string;
|
18
|
-
export declare function getLogger(categoryOrClass
|
18
|
+
export declare function getLogger(categoryOrClass: LoggerArg): Logger;
|