Skip to content

Commit

Permalink
types: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 5, 2024
1 parent f3285f7 commit 6351bc5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .npmignore

This file was deleted.

4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ declare namespace Logger {

export interface Record {
id: number
meta: Logger.Meta
meta: Meta
name: string
type: Logger.Type
type: Type
level: number
content: string
timestamp: number
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reggol",
"description": "Logger for professionals",
"version": "1.7.0",
"version": "1.7.1",
"sideEffects": false,
"main": "lib/node.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -43,22 +43,22 @@
},
"devDependencies": {
"@sinonjs/fake-timers": "^6.0.1",
"@types/chai": "^4.3.14",
"@types/chai": "^4.3.16",
"@types/mocha": "^9.1.1",
"@types/node": "^20.11.30",
"@types/node": "^22.1.0",
"@types/object-inspect": "^1.8.4",
"@types/sinonjs__fake-timers": "^6.0.4",
"@types/supports-color": "^8.1.3",
"c8": "^7.14.0",
"chai": "^4.4.1",
"esbuild": "^0.18.20",
"chai": "^5.1.1",
"esbuild": "^0.23.1",
"esbuild-register": "^3.5.0",
"mocha": "^9.2.2",
"shx": "^0.3.4",
"typescript": "^5.4.3"
"typescript": "^5.5.3"
},
"dependencies": {
"cosmokit": "^1.6.2",
"cosmokit": "^1.6.3",
"object-inspect": "^1.13.1",
"supports-color": "^8.1.1"
}
Expand Down
6 changes: 3 additions & 3 deletions src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Logger {
export type Level = number | LevelConfig
export type Function = (format: any, ...param: any[]) => void
export type Type = 'success' | 'error' | 'info' | 'warn' | 'debug'
export type Formatter = (value: any, target: Logger.Target, logger: Logger) => any
export type Formatter = (value: any, target: Target, logger: Logger) => any

export interface LabelStyle {
width?: number
Expand All @@ -35,7 +35,7 @@ namespace Logger {
id: number
meta: any
name: string
type: Logger.Type
type: Type
level: number
content: string
timestamp: number
Expand All @@ -55,7 +55,7 @@ namespace Logger {
maxLength?: number
record?(record: Record): void
print?(text: string): void
levels?: Logger.LevelConfig
levels?: LevelConfig
timestamp?: number
}
}
Expand Down

0 comments on commit 6351bc5

Please sign in to comment.