Skip to content

Commit

Permalink
Use log method typing from Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
cuzzlor committed Oct 20, 2023
1 parent 098e8fa commit 97da08d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import omitBy from 'lodash.omitby'
import { GraphQLContext } from './context'
import { isIntrospectionQuery, isNil } from './utils'

type LogFunction = Logger['info']
export type LoggerLogFunctions<T extends Logger> = {
[Property in keyof T]: (message: string, ...optionalParams: unknown[]) => void
[Property in keyof T]: LogFunction
}

/**
Expand Down

0 comments on commit 97da08d

Please sign in to comment.