Skip to content

Commit

Permalink
test: add linter for types
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Aug 31, 2023
1 parent 926bcfa commit 6096bb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"standard-markdown": "latest",
"standard-version": "latest",
"stream-to-promise": "latest",
"tsd": "latest",
"web-streams-polyfill": "latest"
},
"engines": {
Expand All @@ -100,7 +101,7 @@
"clean:build": "rm -rf dist",
"contributors": "(npx git-authors-cli && npx finepack --sort-ignore-object-at ava && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"dev": "npm run build -- -w",
"lint": "standard",
"lint": "standard && tsd",
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
"prebuild": "npm run clean:build && npm run build:kys",
"prerelease": "npm run update:check",
Expand Down Expand Up @@ -156,6 +157,9 @@
"postbump": "npm run build"
}
},
"tsd": {
"directory": "test"
},
"types": "index.d.ts",
"umd:main": "dist/mql.js",
"unpkg": "dist/mql.js"
Expand Down
5 changes: 5 additions & 0 deletions test/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// import { expectType } from 'tsd'

import mql from '../index'

mql({ meta: true })

0 comments on commit 6096bb3

Please sign in to comment.