Skip to content

Commit

Permalink
fix: wip for type fix and dtslint > tsd issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Apr 30, 2024
1 parent 3dea29d commit f2dc40d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"shadowgate15 (https://github.com/shadowgate15)"
],
"dependencies": {
"@breejs/later": "^4.1.0",
"@breejs/later": "^4.2.0",
"boolean": "^3.2.0",
"combine-errors": "^3.0.3",
"cron-validate": "^1.4.5",
Expand All @@ -24,36 +24,36 @@
"safe-timers": "^1.1.0"
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@goto-bus-stop/envify": "^5.0.0",
"@sinonjs/fake-timers": "^11.2.2",
"@types/node": "^20.9.3",
"@types/node": "^20.12.7",
"@types/safe-timers": "^1.1.2",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"ava": "^5.3.1",
"cross-env": "^7.0.3",
"delay": "5",
"dtslint": "^4.2.1",
"eslint": "8.39.0",
"eslint-config-xo-lass": "^2.0.1",
"events.once": "^2.0.2",
"fixpack": "^4.0.0",
"husky": "^8.0.3",
"husky": "^9.0.11",
"into-stream": "7",
"lint-staged": "^15.1.0",
"lint-staged": "^15.2.2",
"nyc": "^15.1.0",
"remark-cli": "11",
"remark-preset-github": "^4.0.4",
"tsd": "^0.31.0",
"xo": "0.54"
},
"engines": {
"node": ">=12.17.0 <13.0.0-0||>=13.2.0"
},
"files": [
"src",
"types/index.d.ts"
"types"
],
"homepage": "https://github.com/breejs/bree",
"keywords": [
Expand Down Expand Up @@ -148,14 +148,13 @@
},
"scripts": {
"ava": "cross-env NODE_ENV=test ava",
"dtslint": "cross-env NODE_ENV=test dtslint types",
"lint": "npm run lint:js && npm run lint:md && fixpack",
"lint:js": "xo --fix --ignore examples/",
"lint:md": "remark . -qfo",
"nyc": "cross-env NODE_ENV=test nyc ava",
"prepare": "husky install",
"pretest": "npm run lint",
"test": "npm run ava && npm run dtslint",
"test": "npm run ava && tsd",
"test-coverage": "cross-env NODE_ENV=test nyc npm run test"
},
"types": "types"
Expand Down
7 changes: 7 additions & 0 deletions test-d/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { expectType, expectNotType } from 'tsd';
import Bree from '..';

const bree = new Bree({});

expectType<Bree.Constructor>(Bree);
expectType<Bree.Bree>(bree);
2 changes: 1 addition & 1 deletion types/tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'node:path';
import * as Bree from 'bree';
import * as Bree from '..';

Bree.extend((o, b) => {}, {});

Expand Down

0 comments on commit f2dc40d

Please sign in to comment.