Skip to content

Commit 2105fa2

Browse files
Dmitry Shirokovrunk
andauthored
chore: typescript (#573)
Co-authored-by: Dmitry Shirokov <dshirokov@atlassian.com>
1 parent 175afd3 commit 2105fa2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"semantic-release": "19.0.5",
4343
"sinon": "14.0.0",
4444
"ts-jest": "28.0.7",
45-
"typescript": "4.7.4"
45+
"typescript": "^4.8.4"
4646
},
4747
"repository": {
4848
"type": "git",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'assert';
22
import lru from 'tiny-lru';
3-
import { Reader } from 'mmdb-lib';
3+
import { Reader, Response } from 'mmdb-lib';
44
import fs from './fs';
55
import ip from './ip';
66
import isGzip from './is-gzip';
@@ -17,7 +17,7 @@ export interface OpenOpts {
1717
watchForUpdatesHook?: Callback;
1818
}
1919

20-
export const open = async <T>(
20+
export const open = async <T extends Response>(
2121
filepath: string,
2222
opts?: OpenOpts,
2323
cb?: Callback

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"declaration": true,
99
"diagnostics": true,
1010
"esModuleInterop": true,
11-
"extendedDiagnostics": true,
11+
"extendedDiagnostics": false,
1212
"listEmittedFiles": true,
1313
"module": "commonjs",
1414
"removeComments": true,

0 commit comments

Comments
 (0)