From cc6d29033bb20887cb979ab28c5e28508b02bf54 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Tue, 9 Jan 2018 09:29:19 +0100 Subject: [PATCH] Respect types in index.d.ts files. (#1602) --- package.json | 3 ++- tests/package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6f51aca8..143fc848 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,8 @@ "rimraf": "^2.6.1", "semver": "^5.1.0", "shelljs": "^0.7.7", - "shx": "^0.2.2" + "shx": "^0.2.2", + "@types/node": "^4.0.35" }, "rnpm": { "ios": { diff --git a/tests/package.json b/tests/package.json index d537accb..22550b1c 100644 --- a/tests/package.json +++ b/tests/package.json @@ -14,7 +14,7 @@ "typescript": "^2.5.2" }, "scripts": { - "check-typescript" : "tsc --noEmit --alwaysStrict ./../lib/index.d.ts", + "check-typescript" : "tsc --types --noEmit --alwaysStrict ./../lib/index.d.ts", "js-tests" : "jasmine spec/unit_tests.js", "test": "npm run check-typescript && npm run js-tests" }