Skip to content

Commit 1dd2a41

Browse files
committed
Add types
1 parent d3dd562 commit 1dd2a41

File tree

3 files changed

+277
-8
lines changed

3 files changed

+277
-8
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"cosmosdb-server": "bin/cosmosdb-server.js"
1515
},
1616
"scripts": {
17-
"build": "flow-remove-types src/ -d lib/",
17+
"build": "flow-remove-types src/ -d lib/ && yarn copy-types",
18+
"copy-types": "copyfiles -u 1 './src/**/*.d.ts' lib",
1819
"format": "prettier --ignore-path .gitignore --write '{bin,src,test}/**/*.js'",
1920
"format-staged": "git diff --cached --diff-filter=d --name-only '*.js' | xargs prettier --list-different",
2021
"lint": "eslint --ignore-path .gitignore .",
@@ -36,6 +37,7 @@
3637
"@zeit/best": "0.4.3",
3738
"@zeit/git-hooks": "0.1.4",
3839
"babel-eslint": "9.0.0",
40+
"copyfiles": "2.1.0",
3941
"eslint": "5.5.0",
4042
"eslint-config-airbnb": "17.1.0",
4143
"eslint-config-prettier": "3.0.1",

src/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createServer } from 'https';
2+
3+
export default function setup(): ReturnType<typeof createServer>;
4+

0 commit comments

Comments
 (0)