fix:prettier and some type updates
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
2026-08-21 12:33:03 -03:00
parent 6651b713db
commit 64b63e1c52
4 changed files with 26 additions and 13 deletions
+3 -2
View File
@@ -15,7 +15,8 @@ import { LogLevel as LogLevelEnum, LoggerEnvironment as LoggerEnvironmentEnum }
* A logger emits events at or above its configured threshold (e.g. `warn`
* allows `warn` and `error`).
*/
export type LogLevel = `${LogLevelEnum}`;
export type LogLevel =
`${Exclude<LogLevelEnum, LogLevelEnum.FATAL | LogLevelEnum.LOG | LogLevelEnum.WARNING>}`;
/**
* Deployment stage used to pick a default log level when none is configured
@@ -70,7 +71,7 @@ export interface LogCallOptions {
*/
export interface LogEvent {
/** Severity of this event. Never `silent`. */
level: Exclude<LogLevel, 'silent'>;
level: Exclude<LogLevel, LogLevelEnum.SILENT>;
/**
* Colon-joined namespace for this logger (e.g. `"WIDGET:Button"`).
* Omitted when the logger was created without a namespace.