Skip to content

Commit

Permalink
Update import paths for types
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwilaby committed Apr 8, 2024
1 parent d00e226 commit de4e49c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Args} from '@oclif/core'
import heredoc from 'tsheredoc'
import {PGSettingsCommand, type Setting, type SettingKey} from '../../../lib/pg/setter'
import {PGSettingsCommand} from '../../../lib/pg/setter'
import type {Setting, SettingKey} from '../../../lib/pg/types'

export default class LogMinDurationStatement extends PGSettingsCommand {
static description = heredoc(`
Expand All @@ -16,11 +17,11 @@ export default class LogMinDurationStatement extends PGSettingsCommand {

protected settingKey:SettingKey = 'log_min_duration_statement'

protected convertValue(val: number): number {
return val
protected convertValue(val: unknown): number {
return val as number
}

protected explain(setting: Setting) {
protected explain(setting: Setting<unknown>) {
if (setting.value === -1) {
return 'The duration of each completed statement will not be logged.'
}
Expand Down

0 comments on commit de4e49c

Please sign in to comment.