Skip to content

Commit

Permalink
Added type declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherex committed Aug 25, 2020
1 parent 67d5eb0 commit 96a87a7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
declare module '@vtfk/logger' {
export type Levels = 'silly' | 'debug' | 'verbose' | 'info' | 'warn' | 'error'

export function logger (
level: Levels,
message: string[] | string
): void

export function logConfig(
options?: LogConfigOptions
): void

interface LogConfigOptions {
remote?: {
onlyInProd?: boolean
host?: string
port?: string
serviceHostname?: string
serviceAppname?: string
}
prefix?: string
suffix?: string
localLogger?: (message: any) => void
}
}

0 comments on commit 96a87a7

Please sign in to comment.