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

View file

@ -29,13 +29,14 @@
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */ /* 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. */ // "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'. */ // "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. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
"typeRoots": [ "typeRoots": [
"node_modules/@types" "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. */ // "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. */ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
/* Source Map Options */ /* Source Map Options */