mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: add type annotations (#300)
Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
1 parent
04685ef864
commit
b0f1c0d52c
19 files changed
+418
-71
No files matched your search
@@ -91,7 +91,7 @@ export class Logger {
|
||||
private createMethod(name: LogType, prefix: string, minLevel: number) {
|
||||
this[name] = (...args: [any, ...any[]]) => {
|
||||
if (this.level < minLevel) return;
|
||||
this.stream.write(`${prefix + this.displayName + this.format(...args)}\n`);
|
||||
this.stream.write(`${prefix} ${this.displayName} ${this.format(...args)}\n`);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user