Fix import related TypeScript errors (#9321)

* Add missing @types packages

* Fix TS1272 type only imports

* Fix TS2821 import assertion
This commit is contained in:
Kagami Sascha Rosylight 2022-12-14 00:01:45 +09:00 committed by GitHub
parent f30d54fe88
commit 4b98920f02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 71 additions and 22 deletions

View file

@ -4,6 +4,7 @@ import { DI } from '@/di-symbols.js';
import type { Config } from '@/config.js';
import Logger from '@/logger.js';
import { bindThis } from '@/decorators.js';
import type { KEYWORD } from 'color-convert/conversions';
@Injectable()
export class LoggerService {
@ -15,9 +16,9 @@ export class LoggerService {
) {
if (this.config.syslog) {
this.syslogClient = new SyslogPro.RFC5424({
applacationName: 'Misskey',
applicationName: 'Misskey',
timestamp: true,
encludeStructuredData: true,
includeStructuredData: true,
color: true,
extendedColor: true,
server: {
@ -29,7 +30,7 @@ export class LoggerService {
}
@bindThis
public getLogger(domain: string, color?: string | undefined, store?: boolean) {
public getLogger(domain: string, color?: KEYWORD | undefined, store?: boolean) {
return new Logger(domain, color, store, this.syslogClient);
}
}