From: Jakub Jirutka Date: Tue, 20 Oct 2020 19:16:20 +0000 (+0200) Subject: Types: added tsconfig.json and package.json for type descriptions. X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=f67a01996720c5f860c88af57e2d0e56f5dd775d;p=njs.git Types: added tsconfig.json and package.json for type descriptions. --- diff --git a/ts/package.json b/ts/package.json new file mode 100644 index 00000000..5bc34d31 --- /dev/null +++ b/ts/package.json @@ -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 --git a/ts/tsconfig.json b/ts/tsconfig.json new file mode 100644 index 00000000..8cb2218c --- /dev/null +++ b/ts/tsconfig.json @@ -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 + } +}