Add TypeScript definitions (#207)

This commit is contained in:
calebboyd 2017-10-17 22:10:43 -05:00 committed by Sindre Sorhus
parent 5e6d5fda44
commit f653b061d6
5 changed files with 152 additions and 2 deletions

View file

@ -8,13 +8,14 @@
"node": ">=4"
},
"scripts": {
"test": "xo && nyc ava",
"test": "xo && tsc --project types && nyc ava",
"bench": "matcha benchmark.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"files": [
"index.js",
"templates.js"
"templates.js",
"types/index.d.ts"
],
"keywords": [
"color",
@ -52,8 +53,10 @@
"matcha": "^0.7.0",
"nyc": "^11.0.2",
"resolve-from": "^3.0.0",
"typescript": "^2.5.3",
"xo": "*"
},
"types": "types/index.d.ts",
"xo": {
"envs": [
"node",