mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-28 08:24:32 +00:00
tweak log4javascript.Level, change from enum to class with static fields to match implementation. (#9498)
This commit is contained in:
committed by
Masahiro Wakame
parent
0060fb0862
commit
15ad62197f
17
log4javascript/log4javascript.d.ts
vendored
17
log4javascript/log4javascript.d.ts
vendored
@@ -89,7 +89,22 @@ declare namespace log4javascript {
|
||||
/**
|
||||
* Levels are available as static properties of the log4javascript.Level object.
|
||||
*/
|
||||
export enum Level { ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF }
|
||||
export class Level {
|
||||
static ALL: Level;
|
||||
static TRACE: Level;
|
||||
static DEBUG: Level;
|
||||
static INFO: Level;
|
||||
static WARN: Level;
|
||||
static ERROR: Level;
|
||||
static FATAL: Level;
|
||||
static OFF: Level;
|
||||
|
||||
constructor(level: number, name: string);
|
||||
|
||||
toString(): string;
|
||||
equals(level: Level): boolean;
|
||||
isGreaterOrEqual(level: Level): boolean;
|
||||
}
|
||||
|
||||
// #endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user