Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

Commit 3634893

Browse files
committed
declaration types
1 parent 0499924 commit 3634893

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/index.d.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import * as winston from "winston";
2+
3+
declare interface IConfig {
4+
sentry: {
5+
enabled: boolean,
6+
dsn?: string,
7+
level?: string,
8+
}
9+
}
10+
11+
declare const loggerFactory: ({config: IConfig}) => winston.Logger;

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
6+
"types": "./lib/index.d.ts",
67
"scripts": {
78
"test": "echo \"Error: no test specified\" && exit 1"
89
},

0 commit comments

Comments
 (0)