Skip to content

Commit add22e6

Browse files
committed
feat: add TypeScript definitions and update package exports
1 parent 70beacc commit add22e6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Knex } from "knex";
2+
3+
declare class Client_PhotoStructureSQLite extends Knex.Client {}
4+
5+
export = Client_PhotoStructureSQLite;

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
"version": "0.1.0",
44
"description": "Knex.js dialect for @photostructure/sqlite",
55
"main": "./index.js",
6+
"types": "./index.d.ts",
67
"exports": {
7-
".": "./index.js",
8+
".": {
9+
"types": "./index.d.ts",
10+
"default": "./index.js"
11+
},
812
"./package.json": "./package.json"
913
},
1014
"files": [
1115
"index.js",
16+
"index.d.ts",
1217
"LICENSE",
1318
"README.md"
1419
],

0 commit comments

Comments
 (0)