Skip to content

Commit a2ed13f

Browse files
author
Evgeny Markov
committed
fix: sync typescript configuration with fastify
1 parent f2a868e commit a2ed13f

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { FastifyPluginCallback } from 'fastify';
2-
import type PgAdapter from 'pg';
3-
import type {
1+
import { FastifyPluginCallback } from 'fastify';
2+
import * as PgAdapter from 'pg';
3+
import {
44
Client as PgClient,
55
Pool as PgPool,
66
PoolClient as PgPoolClient,

package.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,10 @@
4040
"pg-native": "^3.0.0",
4141
"standard": "^14.0.0",
4242
"tap": "^14.10.7",
43-
"typescript": "^4.0.0"
43+
"typescript": "^4.0.2"
4444
},
4545
"peerDependencies": {
46-
"pg": ">=6.0.0"
47-
},
48-
"optionalDependencies": {
49-
"@types/pg": ">=6.0.0",
50-
"typescript": ">=4.0.0"
46+
"pg": ">=6.0.0",
47+
"@types/pg": ">=6.0.0"
5148
}
5249
}

tsconfig.json

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
{
2-
"include": ["./index.d.ts"],
3-
4-
"compilerOptions": {
5-
"noEmit": true,
6-
"esModuleInterop": true,
7-
8-
"strict": true,
9-
"noUnusedLocals": true,
10-
"noUnusedParameters": true,
11-
"noImplicitReturns": true,
12-
"noFallthroughCasesInSwitch": true,
13-
},
2+
"extends": "fastify/types/tsconfig.json"
143
}

0 commit comments

Comments
 (0)