Add typings and redo tsconfig

This commit is contained in:
Alex Janka 2017-06-02 19:00:15 +10:00
parent d06ab6361e
commit b3fab4fdc2
2 changed files with 8 additions and 4 deletions

View file

@ -2,7 +2,7 @@
"name": "handlebars-ipinfo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "index",
"scripts": {
"serve": "nodemon --exec ts-node -- index.ts"
},
@ -13,6 +13,9 @@
"author": "Alex Janka",
"license": "ISC",
"dependencies": {
"@types/express": "^4.0.35",
"@types/express-handlebars": "0.0.29",
"@types/handlebars": "^4.0.32",
"@types/node": "^7.0.23",
"express": "^4.15.3",
"express-handlebars": "^3.0.0",
@ -22,4 +25,4 @@
"typescript": "^2.3.4"
},
"devDependencies": {}
}
}

View file

@ -29,13 +29,14 @@
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
"typeRoots": [
"node_modules/@types"
] /* List of folders to include type definitions from. */
]
/* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
/* Source Map Options */