Welcome! Log In Create A New Profile

Advanced

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

Dmitry Volyntsev
October 29, 2020 09:02AM
details: https://hg.nginx.org/njs/rev/e1dc1fd52fe9
branches:
changeset: 1551:e1dc1fd52fe9
user: Jakub Jirutka <jakub@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
+ }
+}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Dmitry Volyntsev 124 October 29, 2020 09:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready