[njs] Types: added tsconfig.json and package.json for type descriptions.

Dmitry Volyntsev xeioex at nginx.com
Thu Oct 29 13:00:05 UTC 2020


details:   https://hg.nginx.org/njs/rev/e1dc1fd52fe9
branches:  
changeset: 1551:e1dc1fd52fe9
user:      Jakub Jirutka <jakub at jirutka.cz>
date:      Tue Oct 20 21:16:20 2020 +0200
description:
Types: added tsconfig.json and package.json for type descriptions.

diffstat:

 ts/package.json  |  30 ++++++++++++++++++++++++++++++
 ts/tsconfig.json |  24 ++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 0 deletions(-)

diffs (62 lines):

diff -r 1ddcc8b77dab -r e1dc1fd52fe9 ts/package.json
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ts/package.json	Tue Oct 20 21:16:20 2020 +0200
@@ -0,0 +1,30 @@
+{
+  "name": "njs-types",
+  "version": "0.0.0-dev",
+  "description": "TypeScript definitions for njs scripting language and nginx js modules.",
+  "scripts": {
+    "lint": "tsc"
+  },
+  "files": [
+    "**/*.d.ts"
+  ],
+  "types": "index.d.ts",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/nginx/njs.git"
+  },
+  "keywords": [
+    "nginx",
+    "njs",
+    "types"
+  ],
+  "author": "NGINX, Inc.",
+  "license": "BSD-2-Clause",
+  "bugs": {
+    "url": "https://github.com/nginx/njs/issues"
+  },
+  "homepage": "https://nginx.org/en/docs/njs/",
+  "devDependencies": {
+    "typescript": "^4.0.3"
+  }
+}
diff -r 1ddcc8b77dab -r e1dc1fd52fe9 ts/tsconfig.json
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ts/tsconfig.json	Tue Oct 20 21:16:20 2020 +0200
@@ -0,0 +1,24 @@
+{
+    "compilerOptions": {
+        "target": "es5",
+        "module": "es2015",
+        "lib": [
+            "ES2015",
+            "ES2016.Array.Include",
+            "ES2017.Object",
+            "ES2017.String"
+        ],
+        "noEmit": true,
+        "strict": true,
+        "noImplicitAny": true,
+        "strictNullChecks": true,
+        "strictFunctionTypes": true,
+        "strictBindCallApply": true,
+        "strictPropertyInitialization": true,
+        "noImplicitThis": true,
+        "alwaysStrict": true,
+
+        "moduleResolution": "node",
+        "forceConsistentCasingInFileNames": true
+    }
+}


More information about the nginx-devel mailing list