Skip to content

Commit

Permalink
Make function types generic in type definitions (#3168)
Browse files Browse the repository at this point in the history
* Make function types generic in type definitions

* Add dtslint and tests for type definitions
  • Loading branch information
lorefnon authored and kibertoad committed May 4, 2019
1 parent a2ab754 commit 6a4fecf
Show file tree
Hide file tree
Showing 6 changed files with 1,591 additions and 918 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.16.5",
"description": "A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser",
"main": "knex.js",
"types": "types/knex.d.ts",
"types": "types/index.d.ts",
"engines": {
"node": ">=6"
},
Expand Down Expand Up @@ -45,6 +45,7 @@
"chai-subset-in-order": "^2.1.3",
"coveralls": "^3.0.3",
"cross-env": "^5.2.0",
"dtslint": "^0.7.1",
"eslint": "5.16.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-import": "^2.16.0",
Expand Down Expand Up @@ -85,10 +86,11 @@
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"dev": "rimraf ./lib && babel -w src --out-dir lib --copy-files",
"lint": "eslint '{src,test}/**/*.js'",
"lint_types": "dtslint types",
"plaintest": "mocha --exit -t 10000 -b -R spec test/index.js && npm run tape",
"plaintest:sqlite": "cross-env DB=sqlite3 npm run plaintest",
"prepublish": "npm run babel",
"pre_test": "npm run lint",
"pre_test": "npm run lint && npm run lint_types",
"bin_test": "cross-env KNEX_PATH=../knex.js KNEX=bin/cli.js jake -f test/jake/Jakefile",
"tape": "node test/tape/index.js | tap-spec",
"debug_tape": "node --inspect-brk test/tape/index.js",
Expand Down Expand Up @@ -153,7 +155,7 @@
"LICENSE",
"CHANGELOG.md",
"scripts/*",
"types/*"
"types/index.d.ts"
],
"license": "MIT",
"tonicExampleFilename": "scripts/runkit-example.js",
Expand Down
Loading

0 comments on commit 6a4fecf

Please sign in to comment.